AbstractOptionalcontext: anyAbstractcloseCalls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
ProtectedhandleDecodes a raw message received from the transport and emits it as a RosbridgeMessage over the "message" event. If an error occurs, it is emitted as an "error" event.
The default implementation handles multiple compression formats and fragment messages. Subclasses may override this method to provide custom handling of raw messages and when to emit messages.
AbstractisAbstractisAbstractisAbstractisReturn the number of listeners listening to a given event.
Return the listeners registered for a given event.
Optionalfn: (Optionalcontext: anyOptionalonce: booleanAdd a listener for a given event.
Optionalcontext: anyAdd a one-time listener for a given event.
Optionalcontext: anyRemove all listeners, or those of the specified event.
Optionalevent: "error" | "message" | "open" | "close"Remove the listeners of a given event.
Optionalfn: (Optionalcontext: anyOptionalonce: booleanAbstractsend
Abstract base class for all transport implementations. Provides a default implementation for decoding raw rosbridge messages.