Class: palava.WebSocketChannel

Defined in: coffee/web_socket_channel.coffee
Inherits: EventEmitter

Overview

Channel implementation using websockets

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

Instance Method Summary

Constructor Details

# (void) constructor(address)

Parameters:

  • 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

Parameters:

  • 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: