Sha256: 4b17f332ee49d5ebd96bd363e6eab2fb981be7983442c869b2f7fff019360ab3

Contents?: true

Size: 702 Bytes

Versions: 17

Compression:

Stored size: 702 Bytes

Contents

This example creates an async, evented app that can do the following.

* Broadcast messages to all connected websockets originating from a
master control server.
* Proxy requests sent via websocket to HTTP through a master
control server

It's broken into three parts
* service.rb: The async core, written in dripdrop/eventmachine/zeromq
* client.rb:  A Test websocket client
* service.rb: A test HTTP web-service that could beb used to control messages

To run.

In one terminal (in dripdrop root)
ruby -I lib/ example/complex/server.rb

In another terminal (Websocket client)
cd example/complex && ruby client.rb

In a third terminal (Minimal webapp in sinatra)
cd example/complex && ruby service.rb

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
dripdrop-0.11.0-java example/complex/README
dripdrop-0.11.0 example/complex/README
dripdrop-0.10.0 example/complex/README
dripdrop-0.10.0-java example/complex/README
dripdrop-0.10.0.beta2 example/complex/README
dripdrop-0.10.0.beta1 example/complex/README
dripdrop-0.9.10 example/complex/README
dripdrop-0.9.9 example/complex/README
dripdrop-0.9.8 example/complex/README
dripdrop-0.9.6 example/complex/README
dripdrop-0.9.5 example/complex/README
dripdrop-0.9.4 example/complex/README
dripdrop-0.9.3 example/complex/README
dripdrop-0.9.2 example/complex/README
dripdrop-0.8.1 example/complex/README
dripdrop-0.8.0 example/complex/README
dripdrop-0.7.1 example/complex/README