spring-fu icon indicating copy to clipboard operation
spring-fu copied to clipboard

WebSocket support for kofu

Open cromefire opened this issue 5 years ago • 0 comments

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

cromefire avatar Jun 25 '20 21:06 cromefire