Class Index | File Index

Classes


Class Guacamole.Parser


Defined in: Parser.js.

Class Summary
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 Summary
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 Summary
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 receive.
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.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Sep 08 2015 22:31:29 GMT-0700 (PDT)