WebSocket class of PicoRuby
Singleton methods
new
WebSocket.new(String url) -> WebSocket
Instance methods
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