WinkMeter / flutter_socket_io

Socket IO plugin for Flutter
MIT License
49 stars 49 forks source link

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 4 years ago

bobanminic96 commented 4 years ago

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 commented 4 years ago

I have this problem too

sumitrvi commented 3 years ago

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

apoorv-1310 commented 1 year ago

anyone got any solution ?