Since there is some demand (#41, #38, #35) to support a client, 'ToyWS' is a response to those requests: ToyWS is a toy WebSocket client, meaning that it's quite simple and made to work (guaranteed) only with wsServer.
Limitations:
Fixed handshake header
Fixed frame mask (it should be random)
No PING/PONG frame support
No close handshake support: although it can identify CLOSE frames, it does not send the response, only aborts the connection.
No support for CONT frames, that is, the entire content of a frame (TXT or BIN) must be contained within a single frame.
Possibly other things too.
Although extremely limited, ToyWS was designed for those who want to also have a C client that is lightweight and compatible with wsServer, thus, freeing the need for a browser and/or third-party libraries to test and use wsServer.
Maybe this client will evolve into something more complete and general in the future, but that's not in the roadmap at the moment.
Note: Please avoid using ToyWS on servers other than wsServer as it is quite limited (see above) and may not support the variety of servers out there.
Description
Since there is some demand (#41, #38, #35) to support a client, 'ToyWS' is a response to those requests: ToyWS is a toy WebSocket client, meaning that it's quite simple and made to work (guaranteed) only with wsServer.
Limitations:
Although extremely limited, ToyWS was designed for those who want to also have a C client that is lightweight and compatible with wsServer, thus, freeing the need for a browser and/or third-party libraries to test and use wsServer.
Maybe this client will evolve into something more complete and general in the future, but that's not in the roadmap at the moment.
Note: Please avoid using ToyWS on servers other than wsServer as it is quite limited (see above) and may not support the variety of servers out there.