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 enumThe authorized type of message fetching when a socket connects to the service. -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(IWsSession session, IMessageWsService.FetchMessageMode fetchMode) Connects a new socket to the service.voiddisconnect(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
-