Open tazik561 opened 4 years ago
This example works for me - https://github.com/rikulo/socket.io-client-dart/issues/36#issuecomment-588580832
socker server that i use , used https and implemented with c# . those code have not difference to my code and i still can not able to connect to https server.
@tazik561 is that server (c#) a Socket.io NodeJS-compliant server? If so, it should work.
I do not know and i will ask a developer who write server .But this is other question i asked in stackoverflow: https://stackoverflow.com/questions/60302062/flutter-engineioexception-websocket-error . I used adhara and with this library i got error too. in this question i mentioned that with socket.io tester chrome extention i can connect to server but flutter libraries can not connect to server!! What is your idea? What is my problem?
@tazik561 can you try to run the pure dart code first, if it can connect to your server, then the problem may be only inside the flutter env. issue, if not, then I think the problem may be the websocket
protocol issue, because the dart:io
can only support websocket
protocol and it's different from browser dart:html
which uses poll
protocol first and then switches to websocket
if possible.
So according to your post on stackoverflow, I could guess the chrome plugin using poll
protocol to connect to your server at the first time.
I am using this code to connect to socket io server :
But after running i got this messages:
What is a problem ? and how can i find out that what is a problem?