Ruby-websocket-client is a project mainly written in Ruby, it's free.
Websocket client in ruby
Implementation of WebSocket client in ruby to talk to WebSockets server. It was developed primarily as a tool to test basic protocol conformance of a WebSocket server.
This client supports hybi-07 draft. Older version of the protocol (hixie draft-76) is not supported.
The client includes some basic tests to check websocket framing, fragmentation and compression (more details in the spec folder).
The client assumes that the server under test support several subprotocols.
Check out the contents of the /spec folder for usage examples.
The MIT License - Copyright (c) 2011 Mikhail Platov