Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io(url:string, opts:object):Socket #52

Open
smart--petea opened this issue Dec 18, 2014 · 0 comments
Open

io(url:string, opts:object):Socket #52

smart--petea opened this issue Dec 18, 2014 · 0 comments

Comments

@smart--petea
Copy link
Owner

Exposed as io global in window if using the standalone build (eg: /socket.io/socket.io.js or the CDN), or the result of calling require('socket.io-client').

When called, it creates a new Manager for the given URL, and attepts to reuse an existing Manager for subsequent calls, unless multiplex option is passed with false. Passing this option is the equivalent of passing force new connection: true.

The rest of the options are passed to the Manager constructor (see below for details).

A Socket instance is returned for the namespace specified ty the pathname in the URL, defaulting to /. For example, if the url is http://localhost/users, a transport connection will be established to http://localhost and a Socket.IO connection will be established to `/users'

smart--petea added a commit that referenced this issue Dec 18, 2014
smart--petea added a commit that referenced this issue Dec 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant