getnamo / SocketIOClient-Unreal

Socket.IO client plugin for the Unreal Engine.
Other
898 stars 240 forks source link

Cant connect to server. #348

Closed boonmaya closed 2 years ago

boonmaya commented 2 years ago

I upgrade plugin to v2.4.0 Release for UE5.0

after upgrade I cannot connect to my server.

3.2.5 Can connect via Connecct with param.

getnamo commented 2 years ago

Do you have additional information like socket.io protocol version used, http or https address, any logs from failed connection?

See also note on https://github.com/getnamo/SocketIOClient-Unreal#packaging

boonmaya commented 2 years ago

After I check out Commit: c79a43761bf5d4b88ccba538cc93bdea059184ca [c79a437] Version 2.4.2

Unreal PC can connect to my https server already.

But I want to ask you, Android cannot use socket.io on https right? Because when I build my game to android, it can connect socket.io only http if I connect to https it will be get in to connect problem events.

Do you have plan to fix it?

boonmaya commented 2 years ago

Hi @getnamo

getnamo commented 2 years ago

Interesting, I was not aware https is broken on Android, looking at the build.cs it may be just a matter of adding the platform in https://github.com/getnamo/SocketIOClient-Unreal/blob/master/Source/SocketIOLib/SocketIOLib.Build.cs.

getnamo commented 2 years ago

I made a quick untested push with the platform added back in: https://github.com/getnamo/SocketIOClient-Unreal/commit/fd7cb7aec136bcd6d67690159b816739eb7c3c24

Pull latest and rebuild the plugin and let me know if the android https works.

boonmaya commented 2 years ago

I use your code to enable TLS on android It usable now. But try to test more. Thanks. But I dont know if it effect to another plugin or not. because I found crash on android's sendbird chat. I will try to test more.