Hi all, I would like to try Ktor to implement a se...
# announcements
a
Hi all, I would like to try Ktor to implement a server for a TCP based protocol. All the documentation and examples are about HTTP. The only docs I could find is this: https://ktor.io/servers/raw-sockets.html Can anyone point me to a blog or a project to get more information how to implement non-HTTP protocol with Ktor ?
f
Why not use something like Vert.x?
r
Try #ktor
a
Thank you. I will.
I would like to compare using Netty and Ktor for TCP based protocol.
m
Ktor uses Netty as one of its server implementations, but it’s made for HTTP at a higher level, so if you want to use TCP you’ll have to either use Netty directly or maybe Korio (https://github.com/korlibs/korio) which includes a TCP server
a
Thank you, Matteo ! I will have a look.
m
you’re welcome 👍
Sorry about my inexact answer above, I didn’t remember ktor provided TCP/UDP sockets, so yes you can use it to make a TCP server.