spring-projects-experimental / spring-fu

Configuration DSLs for Spring Boot
Apache License 2.0
1.67k stars 138 forks source link

WebSocket support for kofu #288

Open cromefire opened 4 years ago

cromefire commented 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