1
0
mirror of https://github.com/payden/libwsclient synced 2024-10-27 17:54:01 +00:00
Go to file
2012-11-25 02:07:46 -05:00
.gitignore Add config.h.in to gitignore. Kill helper_thread. 2012-11-17 17:47:32 -05:00
AUTHORS Initial commit of libwsclient 2012-10-05 20:46:37 -04:00
autogen.sh Initial commit of libwsclient 2012-10-05 20:46:37 -04:00
base64.c Initial commit of libwsclient 2012-10-05 20:46:37 -04:00
ChangeLog Initial commit of libwsclient 2012-10-05 20:46:37 -04:00
config.guess Initial commit of libwsclient 2012-10-05 20:46:37 -04:00
config.h.in I guess the config.h.in is needed 2012-11-25 02:07:46 -05:00
config.sub Initial commit of libwsclient 2012-10-05 20:46:37 -04:00
configure.ac Fix handshake, add support for SSL (wss) 2012-11-17 12:09:18 -05:00
COPYING No symbolic links and add README.md 2012-10-05 20:50:37 -04:00
INSTALL No symbolic links and add README.md 2012-10-05 20:50:37 -04:00
Makefile.am Fix handshake, add support for SSL (wss) 2012-11-17 12:09:18 -05:00
NEWS Initial commit of libwsclient 2012-10-05 20:46:37 -04:00
README Initial commit of libwsclient 2012-10-05 20:46:37 -04:00
README.md Update README.md 2012-11-15 11:19:56 -05:00
sha1.c Initial commit of libwsclient 2012-10-05 20:46:37 -04:00
sha1.h Initial commit of libwsclient 2012-10-05 20:46:37 -04:00
test.c Change connection str back to echo.websocket.org 2012-11-17 12:12:15 -05:00
wsclient.c Add config.h.in to gitignore. Kill helper_thread. 2012-11-17 17:47:32 -05:00
wsclient.h Fix handshake, add support for SSL (wss) 2012-11-17 12:09:18 -05:00

libwsclient

WebSocket client library for C

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.

Also, to install:

./autogen.sh

./configure && make && sudo make install

Then link your C program against wsclient: 'gcc -g -O2 -o test test.c -lwsclient'