icerockdev / moko-socket-io

MOKO SocketIo by IceRock is Socket.IO implementation Kotlin Multiplatform library
https://moko.icerock.dev/
Apache License 2.0
116 stars 19 forks source link

The ability to instantiate sockets for a certain namespace #7

Open Rostyk opened 3 years ago

Rostyk commented 3 years ago

The swift and java sockets have the interfaces to create a socket for a certain namespace, called nsp in both native frameworks. In android io.socket.client.manager -> public Socket socket(final String nsp, Options opts) and for swift SocketIO: SocketManager.swift -> open func socket(forNamespace nsp: String) It would be tremendously helpful if we could expose it to kotlin multiplatform as for now the socket binds to default / name space. I wanted to submit the pull request but having issues with building the project locally and validating the pull request on my local machine.

As a a side note: Awesome work on this library!

Alex009 commented 3 years ago

thx for report! we not use in our project namespace anytime, but your pull request will be good :) can you describe what problems you have with building project locally? now configuration support very simple dev start - git clone and gradle build will success without any additional actions.

maybe not all environment available? jdk 1.8, android-sdk, xcode cli tools?