-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Can we create socket instance by using socket = new io.Socket #496
Comments
should work. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Can you let me know why the below case 1: doesn't work;
case 1:
var socket = new io.Socket('localhost', {port: 4000});
socket.connect();
but the case 2, works fine.
Case 2:
var socket = io.connect("http://localhost:4000/");
The text was updated successfully, but these errors were encountered: