Kind of a RelayMessage.
data
broadcast
join
leave
welcome
error
tunnel
identify
punchRequest
punchProbe
punchEndpoint
punchAuth
Kind of a RelayMessage.
data– application payload relayed from one client to another.broadcast– application payload sent to every other connected client.join– server notification that a client has joined.leave– server notification that a client has left.welcome– initial message the server sends to assign a client its ID.error– server notification that something went wrong.tunnel– raw bytes of a proxied TCP connection, multiplexed between two relay clients by IRelayMessage.connectionId.identify– a client advertises a human-chosen name (e.g. a target ID) so peers can select it; the server relays it to everyone.punchRequest– asks a peer to join a TCP hole-punch attempt.punchProbe– registers a temporary socket's public endpoint.punchEndpoint– returns the other probe's observed public endpoint.punchAuth– authenticates a newly established direct peer socket.