Class: Parser

Guacamole.Parser

new Parser()

Simple Guacamole protocol parser that invokes an oninstruction event when full instructions are available from data received via receive().
Source:

Methods

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:
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 The parameters provided for the instruction, if any.
Source: