Comments (6)
We can mark this issue as solved.
The implementation in the production server was incorrect. This only used the engine.io
protocol sub-protocol. Then of course it is clear if the corresponding events are not thrown.
Sorry for the inconvenience
from socket.io-client.
Hi! Do you get a connect_error
event instead?
socket.on('connect_error', (err) => {
console.log('"connect_error" event was fired', err)
});
from socket.io-client.
- i do not get an
connect_error
event - for testing I used a socket.io server with Node
- i used a Jetty server for testing with the WebClient
Could it be that the connect
event is only thrown when connecting to a socket io server?
from socket.io-client.
for testing I used a socket.io server with Node
i used a Jetty server for testing with the WebClient
Which server implementation are you using, the Node.js one?
If you enable the debug logs (by setting localStorage.debug = '*'
in your console), do you get any useful information?
from socket.io-client.
The production server is the Jetty server, on which it does not work 100 per cent. The debugging does not produce any further output in the console.
It establishes the connection and also sends data:
I have to do some weird workarounds to make the connection work:
socket.io.on('open', () => {
socket.onconnect();
});
socket.onAny((data) => {
console.log('Here comes my data', data);
});
socket.on('message', (msg) => {
console.log('Here comes no data', data);
});
from socket.io-client.
After the 40...
message (which means "I want to enter the namespace named /statistics/websocket/stat1/
"), the client should get a response from the server ("OK for namespace /statistics/websocket/stat1/
"), which does not seem to be the case here.
It sounds like a bug. Could you please open an issue on the repository of the Jetty server?
from socket.io-client.
Related Issues (20)
- Getting Console Errors
- Cannot build TS project when targeting Node16 or NodeNext HOT 6
- more useful advice about namespace
- ESM build for 4.7.2 npm package generates with incorrect package version HOT 6
- socket listen with AbortSignal HOT 2
- React native ios crashes on production with extraHeaders HOT 4
- Add an onMany method to attach a callback to multiple socket events. HOT 2
- Next.js v14.0.0 server with socket.io client doesn't send messages with more than a few characters HOT 5
- Unable to resolve "@socket.io/component-emitter" HOT 7
- Won't switch to polling transport when Websocket transport failed HOT 3
- Property 'of' does not exist on type 'Socket<DefaultEventsMap, DefaultEventsMap>'. HOT 6
- Cannot listen to event dispared in useEffect() Next js 14.0.4 HOT 1
- Encountering 'TransportError' with socket.io-client in React Native Production Mode HOT 1
- Websocket Connection Becomes Unstable - Starts disconnecting and reconnecting after a while of being active HOT 3
- HI, there is a problem about socket.io-client 4.7.0 and netty-socketio 2.0.6. The auth parameter causes the socket connection to fail and returns parse error. HOT 3
- connection error HOT 2
- [BUG] building [email protected] in a typescript based nodejs docker container results in type script error HOT 4
- Minor: Event handler of 'offline' event must be added on the initial evaluation of worker script on Service Worker HOT 1
- v4.7.4 returns `No version specified and unable to automatically determine one` at runtime HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socket.io-client.