Module: WebSocket::Client::Simple
- Defined in:
- lib/websocket-client-simple.rb,
lib/websocket-client-simple/client.rb,
lib/websocket-client-simple/version.rb
Defined Under Namespace
Classes: Client
Constant Summary collapse
- VERSION =
"0.9.0"
Class Method Summary collapse
Class Method Details
.connect(url, options = {}) {|client| ... } ⇒ Object
5 6 7 8 9 10 |
# File 'lib/websocket-client-simple/client.rb', line 5 def self.connect(url, ={}) client = ::WebSocket::Client::Simple::Client.new yield client if block_given? client.connect url, return client end |