Class: palava.WebSocketChannel

Defined in: coffee/
Inherits: EventEmitter


Channel implementation using websockets

Events: open -> (), message -> (msg), error -> (), close -> ()

Instance Method Summary

Constructor Details

# (void) constructor(address)


  • address (String) Address of the websocket. Should start with ws:// for web sockets or wss:// for secure web sockets.

Instance Method Details

# (void) send(data) Bound

Sends the given data through the websocket


  • data (Object) Object to send through the channel

# (void) close() Bound

Closes the websocket

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: