Module: SocketIO::Client::Simple

Defined in:
lib/socket.io-client-simple.rb,
lib/socket.io-client-simple/error.rb,
lib/socket.io-client-simple/client.rb,
lib/socket.io-client-simple/version.rb

Defined Under Namespace

Classes: Client, Error

Constant Summary collapse

VERSION =
"1.2.0"

Class Method Summary collapse

Class Method Details

.connect(url, opts = {}) ⇒ Object



5
6
7
8
9
# File 'lib/socket.io-client-simple/client.rb', line 5

def self.connect(url, opts={})
  client = Client.new(url, opts)
  client.connect
  return client
end