Package com.qfs.snl.ws
Interface IMessageWsService
- All Known Implementing Classes:
MessageWsService
public interface IMessageWsService
The interface for a message service for websockets.
- Author:
- ActiveViam
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
The authorized type of message fetching when a socket connects to the service. -
Method Summary
Modifier and TypeMethodDescriptionvoid
connect
(IWsSession session, IMessageWsService.FetchMessageMode fetchMode) Connects a new socket to the service.void
disconnect
(IWsSession session) Disconnects a socket from the service.
-
Method Details
-
connect
Connects a new socket to the service.- Parameters:
session
- the new sessionfetchMode
- the mode for fetching the existing messages
-
disconnect
Disconnects a socket from the service.- Parameters:
session
- the session about to close
-