paulrutter commented on PR #298:
URL: https://github.com/apache/felix-dev/pull/298#issuecomment-2063428565

   I now have a working example, which outputs something like the following:
   
   ```
   g! ## [servlet1] Init with config 
[org.apache.felix.http.base.internal.handler.ServletConfigImpl@3d36ae4f]
   ## [servlet2] Init with config 
[org.apache.felix.http.base.internal.handler.ServletConfigImpl@46f7eff4]
   ## [filter1] Init with config 
[org.apache.felix.http.base.internal.handler.FilterConfigImpl@3d13614c]
   ## [filter2] Init with config 
[org.apache.felix.http.base.internal.handler.FilterConfigImpl@52eac941]
   ## [websocketservlet1] Init, delaying init call until service method is 
called...
   ## [filter1] Filter request 
[ServletRequestWrapper->org.eclipse.jetty.ee10.servlet.ServletApiRequest@6a131dfe]
   ## [filter1] Filter request 
[ServletRequestWrapper->org.eclipse.jetty.ee10.servlet.ServletApiRequest@36faee65]
   ## [websocketservlet1] Delayed init...
   ## [websocketservlet1] Ensuring websockets
   ## [websocketservlet1] Configuring WebSocket factory
   ## [websocketservlet1] Upgrading to websocket request...
   ## [websocketservlet1] Done, upgrading to websocket request.
   ## [class 
org.apache.felix.http.samples.whiteboard.TestWebSocketServlet$TestWebSocket] 
Opened session: 
WebSocketSession[to=PT30S,WebSocketCoreSession@3dc5da96{SERVER,WebSocketSessionState@3406391d{CONNECTED,i=NO-OP,o=NO-OP,c=null},[ws://localhost:8080/filtersample/websocket/test,null,false.[permessage-deflate]],af=true,i/o=4096/4096,fs=65536}->JettyWebSocketFrameHandler@1b5be01d[org.apache.felix.http.samples.whiteboard.TestWebSocketServlet$TestWebSocket],JettyWebSocketFrameHandler@1b5be01d[org.apache.felix.http.samples.whiteboard.TestWebSocketServlet$TestWebSocket]]
   ## [class 
org.apache.felix.http.samples.whiteboard.TestWebSocketServlet$TestWebSocket] 
Received message: test
   ```
   
   The last message is the websocket message received via the browser, which 
can be invoked via the Chrome Console:
   
   ```
   const websocket = websocket = new 
WebSocket("ws://localhost:8080/filtersample/websocket/test");
   websocket.send("test");
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@felix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to