Interface ServerSession.MessageListener

    • Method Detail

      • onMessage

        boolean onMessage​(ServerSession session,
                          ServerSession sender,
                          ServerMessage message)

        Callback invoked when a message is sent.

        Implementers can decide to return false to signal that the message should not be further processed, meaning that other session listeners will not be notified and that the message will be discarded for this session.

        session - the session that will receive the message
        sender - the session that sent the message
        message - the message sent
        whether the processing of the message should continue