Returns the context provided by the opposite client, or null if the handshake process fails
Rejects if the handshake process has failed or if the client was destroyed
Subscribes an event handler for the given eventType. Returns an unsubscribe hook
Subscribes an event handler for the given eventType. Returns an unsubscribe hook
Subscribes a request handler for the given request key. The return value from the subscribed handler is sent back to the opposite client. The handler may be async. Unlike event handlers, there may be only one request handler per request key. Returns an unsubscribe hook.
Subscribes a request handler for the given request key. The return value from the subscribed handler is sent back to the opposite client. The handler may be async. Unlike event handlers, there may be only one request handler per request key. Returns an unsubscribe hook.
Sends a request to the opposite client. There must be an accompanying request handler
subscribed with onRequest
. Resolves with the returned data or times out.
Sends an event to the opposite client
Generated using TypeDoc
A wrapper around the channel deferred object that also checks if the client has been destroyed before returning