new Parser()
Simple Guacamole protocol parser that invokes an oninstruction event when
full instructions are available from data received via receive().
- Source:
Methods
receive(packetnon-null)
Appends the given instruction data packet to the internal buffer of
this Guacamole.Parser, executing all completed instructions at
the beginning of this buffer, if any.
Parameters:
Name | Type | Description |
---|---|---|
packet |
string | The instruction data to receive. |
- Source:
Events
oninstruction
Fired once for every complete Guacamole instruction received, in order.
Parameters:
Name | Type | Description |
---|---|---|
opcode |
string | The Guacamole instruction opcode. |
parameters |
Array.<string> | The parameters provided for the instruction, if any. |
- Source: