Sha256: 16f8b651066b62e6eb3467d42191dd755962794b7fed26f6b254e3ba444d32e4
Contents?: true
Size: 401 Bytes
Versions: 3
Compression:
Stored size: 401 Bytes
Contents
#!/usr/bin/env falcon serve --concurrency 1 -c require 'async/websocket/server' $connections = [] run lambda {|env| Async::WebSocket::Server.open(env) do |connection| $connections << connection while message = connection.next_message $connections.each do |connection| connection.send_message(message) end end end Async::Task.current.sleep(0.1) [200, {}, ["Hello World"]] }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
async-websocket-0.5.0 | examples/chat/config.ru |
async-websocket-0.4.1 | examples/chat/config.ru |
async-websocket-0.4.0 | examples/chat/config.ru |