|
|
@ -565,7 +565,8 @@ class Server(object): |
|
|
|
self._send_packet(eio_sid, self.packet_class( |
|
|
|
packet.DISCONNECT, namespace=namespace)) |
|
|
|
self._trigger_event('disconnect', namespace, sid) |
|
|
|
self.manager.disconnect(sid, namespace=namespace) |
|
|
|
self.manager.disconnect(sid, namespace=namespace, |
|
|
|
ignore_queue=True) |
|
|
|
|
|
|
|
def transport(self, sid): |
|
|
|
"""Return the name of the transport used by the client. |
|
|
@ -693,7 +694,7 @@ class Server(object): |
|
|
|
self._send_packet(eio_sid, self.packet_class( |
|
|
|
packet.CONNECT_ERROR, data=fail_reason, |
|
|
|
namespace=namespace)) |
|
|
|
self.manager.disconnect(sid, namespace) |
|
|
|
self.manager.disconnect(sid, namespace, ignore_queue=True) |
|
|
|
elif not self.always_connect: |
|
|
|
self._send_packet(eio_sid, self.packet_class( |
|
|
|
packet.CONNECT, {'sid': sid}, namespace=namespace)) |
|
|
@ -706,7 +707,7 @@ class Server(object): |
|
|
|
return |
|
|
|
self.manager.pre_disconnect(sid, namespace=namespace) |
|
|
|
self._trigger_event('disconnect', namespace, sid) |
|
|
|
self.manager.disconnect(sid, namespace) |
|
|
|
self.manager.disconnect(sid, namespace, ignore_queue=True) |
|
|
|
|
|
|
|
def _handle_event(self, eio_sid, namespace, id, data): |
|
|
|
"""Handle an incoming client event.""" |
|
|
|