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