code: def close(self, wait=True, abort=False):
          
          if not self.closed and not self.closing:
              self.closing = True
              self.server._trigger_event('disconnect', self.sid, run_async=False)
              if not abort:
                  self.send(packet.Packet(packet.CLOSE))
              self.closed = True
              self.queue.put(None)
              if wait:
                  self.queue.join()
docs: Close the socket connection.