public class WebSocket
extends java.lang.Object
Constructor and Description |
---|
WebSocket() |
Modifier and Type | Method and Description |
---|---|
static HttpResponse |
handleWebSocketRequestWith(HttpRequest request,
org.apache.pekko.stream.javadsl.Flow<Message,Message,?> handler)
If a given request is a WebSocket request a response accepting the request is returned using the given handler to
handle the WebSocket message stream.
|
public static HttpResponse handleWebSocketRequestWith(HttpRequest request, org.apache.pekko.stream.javadsl.Flow<Message,Message,?> handler)
request
- (undocumented)handler
- (undocumented)