BedrockStreaming / websocket-bench

⛔️ DEPRECATED - nodejs tool to benchmark socket.io and faye websocket server
675 stars 186 forks source link

SocketIO Worker error: {"type":"TransportError","description":400} #47

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi, I have this error when execute the websocket-bench...

_> websocket-bench -a 40 -c 10 -p websockets -t socket.io 'https://netbar.com:9876' -v

Launch bench with 40 total connection, 10 concurent connection 0 message(s) send by client 1 worker(s) WS server : socket.io Benchmark Options {"generatorFile":"/usr/local/lib/node_modules/websocket-bench/lib/generator.js","type":"socket.io","transport":"websockets","verbose":true} trying : 10 ... SocketIO Worker error: {"type":"TransportError","description":400} SocketIO Worker error: {"type":"TransportError","description":400} ....

MihaelIsaev commented 7 years ago

The same here

jiaguolin commented 6 years ago

+1

jiaguolin commented 6 years ago

In the following ways to solve

const socket = io('http://hjguang.emicmh.com/5b0663f07a75d800207ea6c4', { transports: ['websocket'] });

But some of my customer's browser does not support 'websocket', all the way I must be compatible with the 'polling' socket-io@2.1.0 socket.io-client@2.1.0