use of org.eclipse.jetty.websocket.api.WebSocketBehavior in project CQ-Actions by Cognifide.
the class MessageWebsocketServlet method activate.
@Activate
public void activate() throws Exception {
WebSocketBehavior behavior = WebSocketBehavior.SERVER;
WebSocketPolicy policy = new WebSocketPolicy(behavior);
webSocketFactory = new WebSocketServerFactory(policy);
webSocketFactory.register(MessageSocket.class);
webSocketFactory.setCreator(this);
webSocketFactory.start();
}
Aggregations