Class WebSocket


  • public class WebSocket
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      WebSocket()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static HttpResponse handleWebSocketRequestWith​(HttpRequest request, akka.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebSocket

        public WebSocket()
    • Method Detail

      • handleWebSocketRequestWith

        public static HttpResponse handleWebSocketRequestWith​(HttpRequest request,
                                                              akka.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. If the request wasn't a WebSocket request a response with status code 400 is returned.
        Parameters:
        request - (undocumented)
        handler - (undocumented)
        Returns:
        (undocumented)