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.

@FunctionalInterface public static interface NetherNetServerSignaling.NewConnectionHandler
Functional interface for new connection handling.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onConnect(long connectionId, String remoteNetworkId, String payload, @Nullable InetSocketAddress clientAddress, @Nullable PlayerInfo player)
    Called when a new connection is initiated by a remote peer.
  • Method Details

    • onConnect

      void onConnect(long connectionId, String remoteNetworkId, String payload, @Nullable InetSocketAddress clientAddress, @Nullable PlayerInfo player)
      Called when a new connection is initiated by a remote peer.
      Parameters:
      connectionId - The unique connection ID for this session.
      remoteNetworkId - The Network ID of the remote peer.
      payload - The initial signaling payload from the remote peer.
      clientAddress - The address 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.