You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The engine.io-client v3.0.4 does not work with the latest version (1.0.3) of the engine.io-server-java.
There is following sentence in the migration notes from 2.x to 3.x:
So it looks like engine.io-server-java v1.0.3 in not a v3 server - is there a plan for the upgrade ?
Steps to reproduce:
Below is my client script - in this script I'm using engine.io-client v3.0.4
In the backend I'm using a copy of the io.socket.socketio.server.ServerWrapper from the socket.io-server-test
Connection is never established - process always exit with code 1.
var io = require('socket.io-client');
var port = process.env.PORT || 3000;
I've been sitting on this for a while now. Mostly because I'm lazy.
Updated version of socket.io and engine.io are now published and should be available on maven in a few hours.
The engine.io-client v3.0.4 does not work with the latest version (1.0.3) of the engine.io-server-java.
There is following sentence in the migration notes from 2.x to 3.x:
"due to several breaking changes, a v2 client will not be able to connect to a v3 server (and vice versa)"
https://socket.io/docs/v3/migrating-from-2-x-to-3-0/index.html
So it looks like engine.io-server-java v1.0.3 in not a v3 server - is there a plan for the upgrade ?
Steps to reproduce:
Connection is never established - process always exit with code 1.
var io = require('socket.io-client');
var port = process.env.PORT || 3000;
console.log('socket.io port='+port);
var socket = io('http://127.0.0.1:' + port, {
autoConnect: false,
transports: ['websocket']
});
socket.on('connect', function () {
console.log('socket.io connected...')
process.exit(0);
});
socket.on('error', function (err) {
console.log('socket.io error', err);
process.exit(1);
});
socket.connect();
setTimeout(function () {
console.log('socket.io timeout...')
process.exit(1);
}, 20000);
The text was updated successfully, but these errors were encountered: