Skip to content

Commit

Permalink
Update 0.11-migration-guide.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Jan 8, 2015
1 parent 07f529c commit 18ebc8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 0.11-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ If you were using `onDisconnect` previously, you might have had to change the `s
Many of the configuration options in Socket.io v1 have changed, so you'll want to update your `config/sockets.js` file accordingly.
+ if you haven’t customized any of the options in `config/sockets.js` for your app, you can safely remove or comment out the entire file and let the Sails defaults do their magic.
+ if you were using a custom `authorization` function to restrict socket connections, you'll now want to use `beforeConnect`. `authorization` was deprecated by Socket.io v1, but `beforeConnect` (which maps to the `allowRequest` option from Engine.io) works just the same way.
+ if you were using other low-level socket configuration that was passed directly to socket.io v1, be sure and check out the [reference page on sailsjs.org](http://sailsjs.org/#/documentation/reference/sails.config/sails.config.sockets.html) where all of the new configuration options are covered in detail.
Expand Down

0 comments on commit 18ebc8e

Please sign in to comment.