OptionalgetOptional method to retrieve historical data from the socket's source.
Optionalfilter: FilterTypeOptional filter criteria.
Optionaloptions: { limit?: number; threadId?: string }Optional configuration like threadId and limit.
Notifies subscribers of new data.
The data payload.
Optionaloptions: { targetSessionId?: string; targetThreadId?: string }Optional targeting information (e.g., specific thread).
Subscribes a callback function to receive data updates.
The function to call with new data.
Optionalfilter: FilterTypeOptional filter criteria specific to the socket type.
Optionaloptions: { threadId?: string }Optional configuration like target threadId.
An unsubscribe function.
Generic interface for a typed publish/subscribe socket.