Interface NetherNetServerSignaling.NewConnectionHandler
- Enclosing interface:
- NetherNetServerSignaling
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for new connection handling.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonConnect(String connectionId, String remoteNetworkId, String payload, @Nullable SourcedAddress clientAddress, @Nullable PlayerInfo player) Called when a new connection is initiated by a remote peer, on the signaling's event loop, which for HTTP signaling is the server channel's own.
-
Method Details
-
onConnect
void onConnect(String connectionId, String remoteNetworkId, String payload, @Nullable SourcedAddress clientAddress, @Nullable PlayerInfo player) Called when a new connection is initiated by a remote peer, on the signaling's event loop, which for HTTP signaling is the server channel's own.- Parameters:
connectionId- The connection ID the peer chose, an opaque token echoed back to it.remoteNetworkId- The Network ID of the remote peer.payload- The initial signaling payload from the remote peer.clientAddress- Where the peer signaled from, seeding the child channel before ICE settles, or null if the signaling cannot tell.player- The peer's validated identity, or null if this signaling does not validate one.
-