Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Websocket client in ruby

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 README.md
README.md

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

Something went wrong with that request. Please try again.