You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Payden Sutherland d416fcb62c I guess the config.h.in is needed 9 years ago
.gitignore Add config.h.in to gitignore. Kill helper_thread. 9 years ago
AUTHORS Initial commit of libwsclient 9 years ago
COPYING No symbolic links and add README.md 9 years ago
ChangeLog Initial commit of libwsclient 9 years ago
INSTALL No symbolic links and add README.md 9 years ago
Makefile.am Fix handshake, add support for SSL (wss) 9 years ago
NEWS Initial commit of libwsclient 9 years ago
README Initial commit of libwsclient 9 years ago
README.md Update README.md 9 years ago
autogen.sh Initial commit of libwsclient 9 years ago
base64.c Initial commit of libwsclient 9 years ago
config.guess Initial commit of libwsclient 9 years ago
config.h.in I guess the config.h.in is needed 9 years ago
config.sub Initial commit of libwsclient 9 years ago
configure.ac Fix handshake, add support for SSL (wss) 9 years ago
sha1.c Initial commit of libwsclient 9 years ago
sha1.h Initial commit of libwsclient 9 years ago
test.c Change connection str back to echo.websocket.org 9 years ago
wsclient.c Add config.h.in to gitignore. Kill helper_thread. 9 years ago
wsclient.h Fix handshake, add support for SSL (wss) 9 years ago

README.md

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'