Remove Peer Sockets
Close and remove all sockets whose remote peer is the given peer.
- Node type: Callable function. Has execution pins and runs when it is reached in the event graph.
- Target: Odin Room
- Menu category: Odin › Room › Socket
- C++:
UOdinRoom::RemoveSocketsForPeer
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
| Name | Type | Description |
|---|---|---|
| Target | Odin Room | The Odin Room to call this function on. |
| Peer Id | Integer64 | Remote PeerId |