Browse Source

Pass result of connect handler up to engineio

pull/14/head
Miguel Grinberg 9 years ago
parent
commit
d8982dba81
  1. 3
      socketio/server.py

3
socketio/server.py

@ -335,6 +335,7 @@ class Server(object):
self.manager.disconnect(sid, namespace) self.manager.disconnect(sid, namespace)
self._send_packet(sid, packet.Packet(packet.ERROR, self._send_packet(sid, packet.Packet(packet.ERROR,
namespace=namespace)) namespace=namespace))
return False
else: else:
self._send_packet(sid, packet.Packet(packet.CONNECT, self._send_packet(sid, packet.Packet(packet.CONNECT,
namespace=namespace)) namespace=namespace))
@ -393,7 +394,7 @@ class Server(object):
def _handle_eio_connect(self, sid, environ): def _handle_eio_connect(self, sid, environ):
"""Handle the Engine.IO connection event.""" """Handle the Engine.IO connection event."""
self.environ[sid] = environ self.environ[sid] = environ
self._handle_connect(sid, '/') return self._handle_connect(sid, '/')
def _handle_eio_message(self, sid, data): def _handle_eio_message(self, sid, data):
"""Dispatch Engine.IO messages.""" """Dispatch Engine.IO messages."""

Loading…
Cancel
Save