Skip to content
Browse files

Handle WebSocket connection closing

  • Loading branch information...
1 parent e832599 commit 37c6bd4234ef9b98797145ec59d71a2cf3d8c602 @dustalov dustalov committed Jan 14, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/goliath/websocket.rb
View
4 lib/goliath/websocket.rb
@@ -59,6 +59,10 @@ def trigger_on_message(msg)
@parent.on_message(@env, msg)
end
+ def close_connection
+ @connection_close.call
+ end
+
def close_connection_after_writing
@connection_close.call
end

0 comments on commit 37c6bd4

Please sign in to comment.
Something went wrong with that request. Please try again.