Closes the current channel, connections and stops receiving events and requests. All pending outgoing requests get cancelled.
Destroys the instance. After invoking the method, the instance cannot be used anymore.
Indicates whether the instance is already disposed.
Registers an error event listener.
Error handler.
Value indicating whether to handle any errors only once.
Registers an event listener.
Event name.
Event handler.
Value indicating whether to handle the event only once.
Registers a request handler.
Request path.
Request handler.
Value indicating whether to handle the request only once.
Opens connection and starts receiving events and requests.
Target channel to connect.
Sends a request.
Request path.
Request payload.
Sends an event.
Event name.
Event payload.
Dereferences object's keys. If a value of a key implements [[DisposableObject]] interface, [dispose] method of the value will be invoked.
Target object.
Keys to dereference. Optional. By default all keys will be dereferenced.
Tries to dispose a given object if it implements [[DisposableObject]] interface. If the object does not implement the interface, but [deref] param is passed, the method will try to dereference all object's keys.
Target object to dispose.
A value indicating whether to perform dereferncing.
Indicates if a given object implements [[DisposableObject]] interface.
Target object.
Generated using TypeDoc
Indicates whether the socket is open.