Comments (4)
Hi! It seems like there is a problem when establishing the SSL connection. Did you find the culprit?
Reference: https://developer.android.com/privacy-and-security/security-config
from socket.io-client.
For future readers:
Please check our React Native guide: https://socket.io/how-to/use-with-react-native
I'm closing this now, please reopen if needed.
from socket.io-client.
@darrachequesne I'm experiencing a similar issue on version 4.7.5
(expo 49.0.21
). I'm pointing to a non-local api (not on localhost
), but the connection never happens successfully.
It works perfectly fine on iOS, but on Android, no connection happens, nor is there an error message. No logs of importance seem to come up when I run expo start
in debug mode either.
The socket-io docs you listed above only apply for development right?
When I remove the transports
field, it works perfectly fine 🤔
globalSocket = io(Env.apiUrl, {
auth: { token },
transports: ['websocket'],
...
});
from socket.io-client.
@enaluz plain HTTP or HTTPS? Self-signed certificate?
If it works without transports
and not with transports: ['websocket']
, then this might indicates that something between the client and the server is preventing the WebSocket connection.
See also: https://socket.io/docs/v4/troubleshooting-connection-issues/
from socket.io-client.
Related Issues (20)
- 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
- Disabling reconnection while reconnecting isn't working HOT 1
- A parser error causes the socket connection to reconnect but the old connection is not closed HOT 1
- Passing an empty object as ManagerOptions causes uri to be undefined. HOT 2
- 想让他运行时可携带token HOT 7
- Cannot send more than 2 properties to my socketio server
- Compilation doesn't work on macOS
- Duplicated event responses HOT 3
- Cannot connect Socket.IO client using HTTPS frontend to Socket.IO server running on HTTP. #5040 HOT 1
- Cannot connect Socket.IO client using HTTPS frontend to Socket.IO server running on HTTP. #5040 HOT 1
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.