Package ratpack.websocket.internal

Examples of ratpack.websocket.internal.WebsocketBroadcastSubscriber


  public static void websocketBroadcast(final Context context, final Publisher<String> broadcaster) {
    websocket(context, new AutoCloseWebSocketHandler<AutoCloseable>() {
      @Override
      public AutoCloseable onOpen(final WebSocket webSocket) throws Exception {
        WebsocketBroadcastSubscriber subscriber = new WebsocketBroadcastSubscriber(webSocket);
        context.stream(broadcaster).subscribe(subscriber);
        return subscriber;
      }
    });
  }
View Full Code Here

TOP

Related Classes of ratpack.websocket.internal.WebsocketBroadcastSubscriber

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.