Sha256: bbc0b9efd969ec22bfb3dcf7e5655cc7fdb931ea49ae8985dee9586e5a4f50a4
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
Rev-WebSocket Examlpes ====================== Documents for *rev-websocket* is available at [frsyuki's rev-websocket repository](http://github.com/frsyuki/rev-websocket). ## Echo server $ gem install rev-websocket $ ruby ./echo A HTTP server runs on localhost:8080 and WebSocket server runs on localhost:8081. Then access to [htt://localhost:8080/echo.html](http://localhost:8080/echo.html). ## RPC push With RPC (Remote Procedure Call), you can push messages to browsers from programs separated from the WebSocket server. In this example, a Sinatra based web appliction pushes messages using MessagePack-RPC, a simple cross-language RPC library. $ gem install msgpack-rpc $ gem install rev-websocket $ gem install sinatra $ gem install json $ ruby ./rpc Then access to [htt://localhost:8080/](http://localhost:8080/). ## ShoutChat ShoutChat is a simple browser-based chat application. $ gem install rev-websocket $ gem install json $ ruby ./shoutchat Then access to [htt://localhost:8080/shoutchat.html](http://localhost:8080/shoutchat.html).
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
cool.io-websocket-0.1.4 | examples/README.md |
rev-websocket-0.1.3 | examples/README.md |