Skip to content

Commit

Permalink
Merge 1913c75 into baaf70a
Browse files Browse the repository at this point in the history
  • Loading branch information
destructobeam committed Mar 10, 2019
2 parents baaf70a + 1913c75 commit 1fdfe36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ require 'async/websocket/server'
$connections = []

run lambda {|env|
Async::WebSocket::Server.open(env) do |connection|
# Options for websocket-driver can be passed as second argument to open
# Default: {}
Async::WebSocket::Server.open(env, options = {}) do |connection|
$connections << connection

while message = connection.next_message
Expand Down

0 comments on commit 1fdfe36

Please sign in to comment.