jetty/jetty.project
View on GitHubJetty 12 - Add a WebSocket MessageSink for Flow.Publisher
Open
#9722 opened on May 2, 2023
EnhancementHelp Wanted
Description
Jetty version(s) 12+
Enhancement Description
As we have MessageSink for InputStream, we could have an implementation for Flow.Publisher<ByteBuffer> since we cannot directly have Content.Source due to classloading issues.
@WebSocket
public class WSEndpoint {
@OnWebSocketMessage
public void onMessage(Flow.Publisher<ByteBuffer> publisher) {
// Consume the message asynchronously.
}
}