foundation-comms.socket
Home > @genesislcap/foundation-comms > Socket
Socket interface
Represents a WebSocket used to establish a communication channel between client and a Genesis server. Provides methods for socket connection, sending and receiving WS messages.
Signature:
export interface Socket extends Omit<SocketStatus, 'serialize' | 'onClose' | 'reconnectionLimitReached' | 'closedCode' | 'closedReason' | 'closedClean'>
Extends: Omit<SocketStatus, 'serialize' | 'onClose' | 'reconnectionLimitReached' | 'closedCode' | 'closedReason' | 'closedClean'>
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string |
Methods
|
Method |
Description |
|---|---|
|
Disconnects the socket and clears all subscriptions | |
|
(ALPHA) Sends a message and returns an observable that emits messages received from the server. | |