Interface IMessageWsService

All Known Implementing Classes:
MessageWsService

public interface IMessageWsService
The interface for a message service for websockets.
Author:
ActiveViam
  • Method Details Link icon

    • connect Link icon

      void connect(IWsSession session, IMessageWsService.FetchMessageMode fetchMode)
      Connects a new socket to the service.
      Parameters:
      session - the new session
      fetchMode - the mode for fetching the existing messages
    • disconnect Link icon

      void disconnect(IWsSession session)
      Disconnects a socket from the service.
      Parameters:
      session - the session about to close