Skip to main content
Version: 2.x

Remove Peer Sockets

Close and remove all sockets whose remote peer is the given peer.

note

Called automatically when the peer leaves the room. Outbound sockets are closed for good (the server recycles peer ids, so sending on a stale socket could reach a later peer under the same id); for inbound sockets only the wrapper object is released, the native socket stays open because the native layer reuses its address when a peer with the recycled id opens new sockets.

Inputs​

NameTypeDescription
TargetOdin RoomThe Odin Room to call this function on.
Peer IdInteger64Remote PeerId