-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket connecting infinitely. + https not connecting #3
Comments
@faiziakbr can you share the code? |
Here is the code. SocketIO socket = await SocketIOManager().createInstance('http://URL:8000/');
socket.onConnect((data){
print("connected...");
print(data);
socket.emit("upDownVoteRequest", ['Hello World']);
});
socket.on("upDownVoteResponse", (data){ //sample event
print("news");
print(data);
});
socket.connect(); |
can you upgrade to latest (0.1.8) and create a socketIO instance using the below code and share the logs here? SocketIOManager manager = SocketIOManager();
socket = await manager.createInstance(
YOUR_SERVER_URI,
enableLogging: true
); |
@tiholic
|
Hello, I'am sorry but I have approximately the same problem. here my console log and my code attached: Syncing files to device Android SDK built for x86... Can you help me please...the app stay blocked on "connecting..." |
@mickadam87 I'm working on a fix. Will update soon. |
I have found the problem. I have to use "http://10.0.2.2:3000" in place of "localhost:3000" in Android Virtual Device ! Socket connected ! Thank you so much ! For informations : https://developer.android.com/studio/run/emulator-networking |
Sorry, but I have a new issue during Xcode Building... PATHto MYapp/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngine.swift:316:11: error: value of type 'WebSocket' has no member 'onHttpResponseHeaders' Known issue ? |
@mickadam87 yes. |
I'am sorry but I have approximately the same problem
|
i have try to clone the example project and changed the url to my own host.the problem still happend. |
For me in the latest version it is working flawlessly on Android side, but iOS is connecting infinitely...
|
I am facing same issue due to this message screen is getting refreshed and load content again |
In socket.io this problem happened to me when the server's socket.io version and client's socket.io version was different. |
Hey, what is the status of this problem ? |
I encountered the same problem. I don’t see it when I visit the local. |
@tiholic Hi, have you fixed the issue? |
Same issue here, did someone found a fix ? |
After too many trials and failures, I have finally written a solution in Javascript until we have a working solution for Flutter. I am writing a blog about it and will share the solution there with a complete explanation. I will add the link here for reference as soon as possible. |
@oncleguigs @Jasper-zzq @agnoam |
hey guys |
Was this problem solved?? Connecting of socket infinite no of times and then disconnecting. |
it's 2021 and i am still facing the exact same issue. |
Any solution? |
Please try using new release: V1.0.0 and create a new issue if any problem still exists.
@yusufnadar @mannnish @Atuldubey98 @SankhaJay @saarang1995 @oncleguigs @Jasper-zzq @agnoam @mucan54 @theromie @majoferenc @choecode @mickadam87 @faiziakbr |
I have implemented the adhara socket.
i have successfully emitted and received the message from server side but the problem is the socket is again connecting and sending the request indefinitely.
how to stop this?
The text was updated successfully, but these errors were encountered: