goog.labs.net.webChannel.WireV8
Provided By |
---|
The v8 codec class.
new WireV8()
Parameters | None. |
---|
Instance Methods
this.decodeMessage( messageText ) → *
*
Decodes a standalone message received from the wire. May throw exception if text is ill-formatted.
Must be valid JSON as it is insecure to use eval() to decode JS literals; and eval() is disallowed in Chrome apps too.
Invalid JS literals include null array elements, quotas etc.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.encodeMessage( message, buffer, opt_prefix ) → void
void
Encodes a standalone message into the wire format.
May throw exception if the message object contains any invalid elements.
Parameters |
|
---|
this.encodeMessageQueue( messageQueue, count, badMapHandler ) → string
string
Encodes all the buffered messages of the forward channel.
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|