JS::WebSocket class of PicoRuby

Singleton methods

new

JS::WebSocket.new(String url) -> void

Instance methods

binary_type

instance.binary_type() -> String?

binary_type=

instance.binary_type=(String type) -> String

close

instance.close() -> nil

closed?

instance.closed?() -> bool

closing?

instance.closing?() -> bool

connecting?

instance.connecting?() -> bool

onclose

instance.onclose() { (JS::Object event) -> void } -> void

onerror

instance.onerror() { (JS::Object event) -> void } -> void

onmessage

instance.onmessage() { (JS::Object event) -> void } -> void

onopen

instance.onopen() { (JS::Object event) -> void } -> void

open?

instance.open?() -> bool

ready_state

instance.ready_state() -> Integer

send

instance.send(String data) -> nil

send_binary

instance.send_binary(String bytes) -> nil
Tags: class