Interface ServerSideConnectionEvent.Intent

All Superinterfaces:
Cancellable, Event, MessageEvent, ServerSideConnectionEvent
Enclosing interface:
ServerSideConnectionEvent

public static interface ServerSideConnectionEvent.Intent extends ServerSideConnectionEvent, MessageEvent, Cancellable

Called asynchronously when the client attempts to connect to the server.

During this event, it's possible to use the RawDataChannels to send requests to the client. As long as there's requests going to the client, the connection will stay in the intent phase and will not continue to the ServerSideConnectionEvent.Auth event.

After observing this event for particular connection you are guaranteed to get #Disconnect for the same connection without ordering issues.

  • Method Details

    • isTransfer

      boolean isTransfer()
      Gets if the user is intending to connect due to being transferred.
      Returns:
      true if the user is transferring.