You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It's not related to any problem.
Describe the solution you'd like
It would be nice to have socket.io like interface for [WebSockets].
For e.g. Interface like that would be nice:
webSocket("/") { socket->// Emit value from server on "chat-message".
socket.emit("chat-message", Frame.Text("YOU SAID $text"))
// Below block will be executed whenever value will be emitted in "response".
socket.on("response") { response->// Response received from client on "response".
}
}
Motivation to include to ktor
If such feature is implemented in ktor it'll make development much more easier. It'll help to make communication better among server and client. It'll provide high reliability.
The text was updated successfully, but these errors were encountered:
Any update ? If that will not be implemented, can you provide example how to achieve same functionality ? I mean how to achieve "routing" with current API ?
Subsystem
WebSocket
Is your feature request related to a problem? Please describe.
It's not related to any problem.
Describe the solution you'd like
It would be nice to have socket.io like interface for [WebSockets].
For e.g. Interface like that would be nice:
Motivation to include to ktor
If such feature is implemented in ktor it'll make development much more easier. It'll help to make communication better among server and client. It'll provide high reliability.
The text was updated successfully, but these errors were encountered: