Search in sources :

Example 1 with WebSocketEndpointImpl

use of com.enonic.xp.portal.impl.websocket.WebSocketEndpointImpl in project xp by enonic.

the class ServiceHandlerWorker method newWebSocketEndpoint.

private WebSocketEndpoint newWebSocketEndpoint(final WebSocketConfig config) {
    final ApplicationKey app = this.request.getApplicationKey();
    final Trace trace = Tracer.current();
    if (trace != null && app != null && !trace.containsKey("app")) {
        trace.put("app", app.toString());
    }
    return new WebSocketEndpointImpl(config, this::getScript);
}
Also used : Trace(com.enonic.xp.trace.Trace) ApplicationKey(com.enonic.xp.app.ApplicationKey) WebSocketEndpointImpl(com.enonic.xp.portal.impl.websocket.WebSocketEndpointImpl)

Aggregations

ApplicationKey (com.enonic.xp.app.ApplicationKey)1 WebSocketEndpointImpl (com.enonic.xp.portal.impl.websocket.WebSocketEndpointImpl)1 Trace (com.enonic.xp.trace.Trace)1