Hello everyone, I curious about chat system, I wan...
# server
s
Hello everyone, I curious about chat system, I want to build chat system on Ktor framework. so Do you think Socket.IO can have powerful to build medium/large chat system.? Or Can you suggestion some technical to build medium/large chat system ? Thanks
g
How socket.io related on Ktor. Isn't it JS-only library for server and client?
s
I see some guys are using socket IO and kotlin https://github.com/kolyagithub/kotlin-socketio
or I get wrong somethings?
g
This is socket.io JVM client
But Ktor is server
s
OK I got it. Thankssss @gildor So Which technologies can build chat system base on Ktor?
g
Ktor can work as Websockets server, nothing more
You of course can implement some chat application with pure websockets and some protocall
K 1
❤️ 1
But I want to add, that this is too broad task, there are many variables so it’s impossible to answer with no context “what would be better”
👍 1
v
We are using socket.io (netty) for a medium-large scale realtime chat backend. Backend-side works fine. I just won’t recommend the android and ios socket.io libraries. In case you don’t need fallback for long-polling, i would suggest you to use just websockets instead of socket.io. In fact we are also planning to migrate from socket.io to ktor.
❤️ 1
s
Thanks for your information. really helpful
we are also planning to migrate from <http://socket.io|socket.io> to ktor.
=> You mean you are using Socket.IO(with
only
Netty server framework) for medium-large scale realtime chat backend , right ? and How about communicate between Mobile and Backend without socket.io ?
v
We are using https://github.com/mrniko/netty-socketio. With plain websockets.
s
Thanks @vonox7
s
If Ktor had first class support for the socket.io protocol that would be pretty awesome, though