-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
So that the following example: ```js const io = require('socket.io')({ pingTimeout: 10000 }); io.listen(3000); ``` behaves the same as: ```js const io = require('socket.io')(3000, { pingTimeout: 10000 }); ``` Before this change, the options in the first example were not forwarded to the Engine.IO constructor, which is not really intuitive. The previous syntax (which is still valid): ```js const io = require('socket.io')(); io.listen(3000, { pingTimeout: 10000 }); ```
- Loading branch information
1 parent
118cc68
commit 43705d7
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters