2
votes

i'm writing sails app, when i run app on firefox, everything is ok, but when i run on chrome have error " transport unknown ".
My config socket.js:

transports: ['websocket','flashsocket', 'polling','htmlfile','xhr-polling','jsonp-polling']


i don't why and how to fix, please help me.

1

1 Answers

1
votes

did you tried this one? Not working for me but I am on sails 0.11.1 ... https://github.com/balderdashy/sails/issues/2529

(from the git hub ticket) modify the config/socket.js as follows:

transports: [
  'websocket',
  'htmlfile',
  'xhr-polling',
  'jsonp-polling'
]

to the following

transports: [
  'websocket',
  'htmlfile', 
  'polling'
],