Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocket support for kofu #288

Open
cromefire opened this issue Jun 25, 2020 · 0 comments
Open

WebSocket support for kofu #288

cromefire opened this issue Jun 25, 2020 · 0 comments
Labels
type: enhancement A general enhancement

Comments

@cromefire
Copy link

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

@sdeleuze sdeleuze added the type: enhancement A general enhancement label Jan 8, 2021
@sdeleuze sdeleuze added this to the General backlog milestone Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants