Home > ruby-websocket-client

ruby-websocket-client

Ruby-websocket-client is a project mainly written in Ruby, it's free.

Websocket client in ruby

Ruby WebSocket Client

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).

Subprotocols

The client assumes that the server under test support several subprotocols.

protocols of libwebsockets server

  • lws-mirror-protocol (copies any received packet to every connection also using this protocol, including the sender)
  • dumb-increment-protocol (send incrementing ASCII string every 0.5 second)
  • fraggle-protocol

org.ietf tests

  • org.ietf.websocket.test-echo-assemble (echo messages after assembling all fragments)
  • org.ietf.websocket.test-echo-fragment (echo frames randomly fragmented)
  • org.ietf.websocket.test-produce (produce messages of random size and fragmentation)

Check out the contents of the /spec folder for usage examples.

License

The MIT License - Copyright (c) 2011 Mikhail Platov

Previous:aimbot