CoreWebSocket
CoreWebSocket copied to clipboard
Add WebSocket client examples
I'm currently working on a project that needs to communicate with a WebSocket server. I've looked at the example in the Readme.md
file and in main.c
but they both seem to be examples for creating a WebSocket listening server and not for setting up a WebSocket client.
After browsing through the headers, it seems that I need to provide a CFSocketNativeHandle
object to the creation function WebSocketClientCreate
. I'm having trouble understanding what is needed to provide the CFSocketNativeHandle
object. I was hoping someone could shed some light on this problem, and also help future users of CoreWebSocket who also want to implement a client. Thanks!