how do I tell ktor to use secure websockets? "wss:...
# ktor
c
how do I tell ktor to use secure websockets? "wss://" ?
d
by serving https
in the end
wss
access to an
https://
endpoint and does a protocol upgrade
you can serve https directly from ktor ( https://ktor.io/servers/configuration.html#available-config ), or configure an nginx doing as reverse proxy and serving http ktor requests and handling https/ssl with potentially a let’s encrypt certificate or whatever, the same goes if you use something like elastic search. As long as https:// works you can use wss://
c
Does call.receive<String>() receive all my data ad once or is it partial?
I think it's receiveStream which might give partial data right?
sorry I missed the context
I am in a post request inside ktor, trying to get my parameter string
d
call.receive<String>()
converts to string the whole body