2012-11-15 16:12:16 +00:00
|
|
|
libwsclient
|
|
|
|
===========
|
|
|
|
|
|
|
|
|
2012-10-06 00:50:37 +00:00
|
|
|
WebSocket client library for C
|
2012-11-15 16:12:16 +00:00
|
|
|
|
|
|
|
This library abstracts away WebSocket protocol framing for
|
|
|
|
client connections. It aims to provide a *somewhat* similar
|
|
|
|
API to the implementation in your browser. You create a new
|
|
|
|
client context and create callbacks to be triggered when
|
|
|
|
certain events occur (onopen, onmessage, onclose, onerror).
|
|
|
|
|
|
|
|
Your best bet for getting started is to look at test.c which shows
|
|
|
|
how to connect to an echo server using libwsclient calls.
|
|
|
|
|
2012-11-15 16:14:07 +00:00
|
|
|
Also, to install:
|
|
|
|
|
|
|
|
./autogen.sh
|
2012-11-15 16:18:22 +00:00
|
|
|
|
2012-11-15 16:14:07 +00:00
|
|
|
./configure && make && sudo make install
|
|
|
|
|
2012-11-15 16:19:56 +00:00
|
|
|
Then link your C program against wsclient: 'gcc -g -O2 -o test test.c -lwsclient'
|
2012-11-15 16:14:07 +00:00
|
|
|
|
2012-11-15 16:12:16 +00:00
|
|
|
|