DEV Community

Discussion on: Integrating Sockets in Kotlin

Collapse
 
robcam3l profile image
rob-cam3l

Hey, this example does not seem to work for me on multiple levels.

Primarily within mainActivity m.socket is unresolved, once i make my way around that, thew main activity then does not know how to find io from IO.Options.

I have followed your example exactly as you have written it, i have tried to work my way around it, and regardless of what i do, i am not able to make an instance of an android app connect to a socket.io server.

Am i missing something?

Collapse
 
drewlylooly profile image
DrewlyLooly

One thing that isn't really shown here is giving your app permissions to use the internet and access the network state in the Manifest - that would be a good thing to try if you're still having issues