Skip to content

Commit

Permalink
Make default transports "websocket-only"
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Oct 28, 2016
1 parent f5bf545 commit 8135ada
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,8 @@ module.exports = {

// • transports (<Array> String)
//
// transports to allow connections to (['polling', 'websocket'])
// transports to allow connections to (e.g. ['polling', 'websocket'])
transports: [
'polling',
'websocket'
],

Expand Down
1 change: 1 addition & 0 deletions test/helpers/lifecycle.helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports = {
global.io = client;

// Set some options.
global.io.sails.transports = ['websocket'];
global.io.sails.url = 'http://localhost:'+TEST_SERVER_PORT;
global.io.sails.environment = 'production'; //(to disable logging)
global.io.sails.multiplex = false; // (to allow for clean testing of multiple connected sockets)
Expand Down

0 comments on commit 8135ada

Please sign in to comment.