websocket.js
No description.

File Location

/goog/net/websocket.js

Classes

goog.net.WebSocket
Class encapsulating the logic for using a WebSocket.
goog.net.WebSocket.ErrorEvent
Object representing an error event. This is fired whenever an error occurs on the web socket.
goog.net.WebSocket.MessageEvent
Object representing a new incoming message event.

Public Protected Private

Enumerations

Global Functions

goog.net.WebSocket.EXPONENTIAL_BACKOFF_(attempt) number
Computes the next reconnect time given the number of reconnect attempts since the last successful connection.
Arguments:
attempt : number
The number of reconnect attempts since the last connection.
Returns: number  The time, in milliseconds, until the next reconnect attempt.
code »
goog.net.WebSocket.protectEntryPoints(errorHandler)
Installs exception protection for all entry points introduced by goog.net.WebSocket instances which are not protected by goog.debug.ErrorHandler#protectWindowSetTimeout, goog.debug.ErrorHandler#protectWindowSetInterval, or goog.events.protectBrowserEventEntryPoint.
Arguments:
errorHandler : !goog.debug.ErrorHandler
Error handler with which to protect the entry points.
code »

Global Variables

function%48 :
No description.
Code »

Directory net

File Reference