On Sun, Apr 07, 2019 at 01:38:25PM +0300, Lassi Kortela wrote:
> Is anyone here familiar with WebSockets? I know absolutely nothing about
> them. Does the simple request handler abstraction still work with them or
> will we have to make changes?
I don't know all that much about them. As far as I know you need
to send an upgrade request and then keep open the port and start
communicating in two directions.
The request handler abstraction in Spiffy (where you explicitly have
to write the headers first and then write to the port) seems to work
for it.
You could have a look at the CHICKEN egg (currently only available for
the deprecated CHICKEN 4) at https://bitbucket.org/thomashintz/websockets/src
As you can see from the code, it takes quite a lot of code to implement
this stuff.
Cheers,
Peter