Spacebrew is “an open, dynamically re-routable software toolkit for choreographing interactive spaces”, basically a way to connect smart objects of any kind using the WebSocket protocol.
Basically, they modified the Arduino WebsocketClient library to use it with Intel Galileo and specifically with Spacebrew:
The received situation was of a version of the Arduino WebsocketClient library: https://github.com/labatrockwell/ArduinoWebsocketClient (oriented to Spacebrew) adapted from: https://github.com/krohling/ArduinoWebsocketClient (implementing the online websocket protocol) neither of them supporting Galileo, an Intel SoC Pentium-based board. It has been revised, modified, and integrated, so that this version runs on Galileo and works for both the connection to a server such as echo.websocket.org and Spacebrew. This version includes extended tracing facilities for debugging (see WebSocketClient.h). The main changes with respect to the previous versions are marked by slash-slash-star-slash-slash.
You can explore the library on Github.