- App: ofxWebsocketpp
- websocketpp wrapper for OpenFrameworks. Wrapper client runs in it's own thread, server allows multiple threads. Server has configurable pool threads (operate on server in/out) and worker threads (handle the of callback side work).
- Example client, server, and client-server.
- All examples are obvious, the client-server example needs the client part in testApp.cpp commented out and then client and server will send messages back and forth nonstop.
- A computer of sorts.
- Boost. Tested for OS X @ 1.50 (what I had installed), Win 7 @ 1.47 (per websocketpp recommendation)
- websocketpp @ commit 27a6d6f4d337c254c732df57531e9bc3d37d70d8
- Install boost. HomeBrew or MacPorts, or just download.
- OS X, edit the Project.xcconfig file so that BOOST_LIBS_PATHS and BOOST_HEADERS point to the appropriate locations.
- Visual studio, open up project properties and configure the C/C++ "Additional Include Directories" as well as Linker "Additional Library Directories" to point to your boost folder
- Examples (C:\boost for headers) (C:\boost\stage\lib or C:\boost\lib for libraries)
- Checkout the websocketpp submodule
- git submodule update
- Start with the base examples. You depend on the websocketpp headers
- Run client-example and server-example locally. Click on the red and green boxes in the windows to stop/start and connect/disconnect.
- See GitHub issue tracking
- websocketpp is from https://github.com/zaphoyd/websocketpp . They did all the hard work.
- Open-source (BSD license)
- Please contact me with any issues.