socket.io-client-swift
socket.io-client-swift copied to clipboard
Emit and event listener not working :(

Could you guys please check above screenshot after successfully connect I'm calling emit event with parameter and listing same event but it's not working.
If you find out anything let me know as well also facing almost same behaviour but sometime.
Are you expecting the server to send you something back based on the payload you're sending it? I'd start by listening to 'onAny' and see what events you get.
you should put the socketmanager and socket client outside of scope. cause ARC released it when function ended