예제 #1
0
 def get_info(self):
     d = Connection.get_info(self)
     d["protocol-type"] = "websocket"
     ws = self._socket
     if ws:
         d.update({
             "sub-protocol": ws.getsubprotocol() or "",
             "headers": ws.getheaders() or {},
             "fileno": ws.fileno(),
             "status": ws.getstatus(),
             "connected": ws.connected,
         })
     return d
예제 #2
0
 def get_info(self):
     d = Connection.get_info(self)
     d["type"] = "named-pipe"
     d["closed"] = self.pipe_handle is None
     return d
예제 #3
0
 def get_info(self):
     d = Connection.get_info(self)
     d["type"] = "named-pipe"
     return d
예제 #4
0
 def get_info(self):
     d = Connection.get_info(self)
     d["type"] = "named-pipe"
     d["closed"] = self.pipe_handle is None
     return d
예제 #5
0
 def get_info(self):
     d = Connection.get_info(self)
     d["type"] = "named-pipe"
     return d