Skip to content
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 connection to NodeJS server ( Socket.io ) using flutter_socket_io 0.6.0 package - Failure in SSL library, usually protocol error #51

Open
bobanminic96 opened this issue Jul 31, 2020 · 3 comments

Comments

@bobanminic96
Copy link

Hi everyone,

I'am trying to achieve socket connection from Flutter App to NodeJS server using flutter_socket_io (https://pub.dev/packages/flutter_socket_io#flutter_socket_io ) but i get error:

connect_error: [{"cause":{"cause":{"detailMessage":"SSL handshake aborted: ssl\u003d0xde16a508: Failure in SSL library, usually a protocol error\nerror:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER (external/boringssl/src/ssl/tls_record.cc:242 0xde52ba43:0x00000000)","stackTrace":[],"suppressedExceptions":[]},"detailMessage":"Handshake failed","stackTrace":[],"suppressedExceptions":[]},"detailMessage":"websocket error","stackTrace":[],"suppressedExceptions":[]}]

And i can't get any further.

And this is my simple code:

socketIO = SocketIOManager().createSocketIO(
'https://xyz:8080', '/',
query:
"param1='87',param2='initial',type='admin',param3='5ea2bb92068ec1153c073dbc'");
socketIO.init();
socketIO.subscribe('online', (jsonData) {
print(jsonData);
});
socketIO.connect();

Anyone any help or full example of using this package?

I used this medium 'doc' as guide:

https://medium.com/flutter-community/realtime-chat-app-one-to-one-using-flutter-socket-io-node-js-acd4152c6a00

@abbasihamed
Copy link

I have this problem too

@sumitrvi
Copy link

@abbasihamed @bobanminic96 Guys have you got any solution i'm also facing same issue please help me out to this issue

@apoorv-1310
Copy link

anyone got any solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants