Open cromefire opened 4 years ago
While you can simply do normal http requests like this:
GET("/") { // ... }
There does not seem to be a WebSocket equivalent like:
webSocket("/") { // ... }
Ktor supports it like this for example:
webSocket("/socket") { outgoing.send(Frame.Text("{}")) for (frame in incoming) { // ... } }
There seem to be some workarounds, but they aren't very ideal
While you can simply do normal http requests like this:
There does not seem to be a WebSocket equivalent like:
Ktor supports it like this for example:
There seem to be some workarounds, but they aren't very ideal