I added two methods: Teapot>>WS: patternActionAssoc self addRouteMethod: (TeaMethodMatcher exactly: #GET) pattern: patternActionAssoc key action: (ZnWebSocketDelegate map: patternActionAssoc key to: patternActionAssoc value)
ZnWebSocketDelegate>>teaEvalActionOnRequest: aTeaRequest ^self handleRequest: aTeaRequest When I do: Teapot on GET: '/ws-echo-client' -> ZnWebSocketEchoHandler clientHtml; WS: '/ws-echo' -> ZnWebSocketEchoHandler new; start. And go to localhost:1701/ws-echo-client in my webbrowser I get: WebSocket Test ws://localhost:1701/ws-echo CONNECTED SENT: WebSocket rocks RESPONSE: WebSocket rocks DISCONNECTED To avoid the WS: message: Teapot on GET: '/ws-echo-client' -> ZnWebSocketEchoHandler clientHtml; GET: '/ws-echo' -> (ZnWebSocketDelegate map: '/ws-echo' to: ZnWebSocketEchoHandler new); start For now I will use the WS: message, and hopefully in the future you come with a nice solution :) Georges -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html