Skip to content

Commit

Permalink
Fixed #24. Now you can return False from multiplexed connection on_op…
Browse files Browse the repository at this point in the history
…en to close it.
  • Loading branch information
mrjoes committed Feb 28, 2012
1 parent 637619d commit 955758d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/multiplexed/index.html
Expand Up @@ -18,7 +18,6 @@
$("#chat").append("<div>" + data + "</div>");
});


function getPrintableDate(date) {
return date.getFullYear().toString() + '/' +
(date.getMonth()+1).toString() + '/' +
Expand Down
3 changes: 2 additions & 1 deletion tornadio2/session.py
Expand Up @@ -301,7 +301,8 @@ def connect_endpoint(self, url):

info = ConnectionInfo(self.remote_ip, args, dict())

conn.on_open(info)
if conn.on_open(info) == False:
self.disconnect_endpoint(endpoint)

def disconnect_endpoint(self, endpoint):
"""Disconnect endpoint
Expand Down

0 comments on commit 955758d

Please sign in to comment.