Formata WebSocket client.
protected
optional
autoCloseInterval: unknown
Auto-close interval.
protected
closeTimeout: number
Auto-close duration.
Last active timestamp.
Session pool.
close(): void
Close this client connection.
protected
evaluateActiveForAutoClose(): void
Evaluate active. If the websocket is inactive for a period of time, automatically close it.
Initialize WebSocket.
Create a new request using the 'subject' helper to point to Formata's main endpoint handling service. Use the FormataRequest helper class to create and then send the request.
waitForOpen(): Promise<void>
Wait for an open connection.