Class Guacamole.Parser
Defined in: guacamole.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Simple Guacamole protocol parser that invokes an oninstruction event when
full instructions are available from data received via receive().
|
Method Attributes | Method Name and Description |
---|---|
receive(packet)
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.
|
Event Attributes | Event Name and Description |
---|---|
oninstruction(opcode, parameters)
Fired once for every complete Guacamole instruction received, in order.
|
Class Detail
Guacamole.Parser()
Simple Guacamole protocol parser that invokes an oninstruction event when
full instructions are available from data received via receive().
Method Detail
receive(packet)
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:
- {String} packet
- The instruction data to append.
Event Detail
oninstruction(opcode, parameters)
Fired once for every complete Guacamole instruction received, in order.
- Parameters:
- {String} opcode
- The Guacamole instruction opcode.
- {Array} parameters
- The parameters provided for the instruction, if any.