public interface UpgradeToWebSocket
UpgradeToWebSocket.handleMessagesWith
to
create a WebSocket handshake response and handle the WebSocket message stream with the given handler.Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<java.lang.String> |
getRequestedProtocols()
Returns the sequence of protocols the client accepts.
|
HttpResponse |
handleMessagesWith(akka.stream.Graph<akka.stream.FlowShape<Message,Message>,?> handlerFlow)
Returns a response that can be used to answer a WebSocket handshake request.
|
HttpResponse |
handleMessagesWith(akka.stream.Graph<akka.stream.FlowShape<Message,Message>,?> handlerFlow,
java.lang.String subprotocol)
Returns a response that can be used to answer a WebSocket handshake request.
|
HttpResponse |
handleMessagesWith(akka.stream.Graph<akka.stream.SinkShape<Message>,?> inSink,
akka.stream.Graph<akka.stream.SourceShape<Message>,?> outSource)
Returns a response that can be used to answer a WebSocket handshake request.
|
HttpResponse |
handleMessagesWith(akka.stream.Graph<akka.stream.SinkShape<Message>,?> inSink,
akka.stream.Graph<akka.stream.SourceShape<Message>,?> outSource,
java.lang.String subprotocol)
Returns a response that can be used to answer a WebSocket handshake request.
|
java.lang.Iterable<java.lang.String> getRequestedProtocols()
See http://tools.ietf.org/html/rfc6455#section-1.9
HttpResponse handleMessagesWith(akka.stream.Graph<akka.stream.FlowShape<Message,Message>,?> handlerFlow)
handlerFlow
- (undocumented)HttpResponse handleMessagesWith(akka.stream.Graph<akka.stream.FlowShape<Message,Message>,?> handlerFlow, java.lang.String subprotocol)
handlerFlow
- (undocumented)subprotocol
- (undocumented)HttpResponse handleMessagesWith(akka.stream.Graph<akka.stream.SinkShape<Message>,?> inSink, akka.stream.Graph<akka.stream.SourceShape<Message>,?> outSource)
inSink
- (undocumented)outSource
- (undocumented)HttpResponse handleMessagesWith(akka.stream.Graph<akka.stream.SinkShape<Message>,?> inSink, akka.stream.Graph<akka.stream.SourceShape<Message>,?> outSource, java.lang.String subprotocol)
The given subprotocol must be one of the ones offered by the client.
inSink
- (undocumented)outSource
- (undocumented)subprotocol
- (undocumented)