Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b4f6a5 + 23eefa5 commit da35808Copy full SHA for da35808
Readme.md
@@ -199,17 +199,17 @@ server.listen(3000);
199
Closes socket server
200
201
```js
202
- var io = require('socket.io');
+ var Server = require('socket.io');
203
var PORT = 3030;
204
var server = require('http').Server();
205
206
- io(PORT);
+ var io = Server(PORT);
207
208
io.close(); // Close current server
209
210
server.listen(PORT); // PORT is free to use
211
212
- io(server);
+ io = Server(server);
213
```
214
215
### Server#use
0 commit comments