Teapot already supports conditional routes, maybe using them instead of
adding the WS: message would be better.

I'm thinking domething like:

Teapot on 
    GET: '/chat' -> whatever; when: [:req | req isWebSocket];
    start.

or just

Teapot on 
    GET: '/chat' -> whatever; when: #isWebSocket
    start.

I'll play with this idea sometime.




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to