Permalink
Browse files

Use the WebSocket's connection stream_close method to close connection

  • Loading branch information...
Dmitry Ustalov
Dmitry Ustalov committed Jan 14, 2013
1 parent 37c6bd4 commit e47753e0e50847040b812269104e2b0b63c3c9ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/goliath/websocket.rb
View
@@ -60,7 +60,7 @@ def trigger_on_message(msg)
end
def close_connection
- @connection_close.call
+ @env[STREAM_CLOSE].call
end
def close_connection_after_writing

0 comments on commit e47753e

Please sign in to comment.