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
def get_info(self): d = Connection.get_info(self) d["type"] = "named-pipe" d["closed"] = self.pipe_handle is None return d
def get_info(self): d = Connection.get_info(self) d["type"] = "named-pipe" return d
def get_info(self): d = Connection.get_info(self) d["type"] = "named-pipe" d["closed"] = self.pipe_handle is None return d
def get_info(self): d = Connection.get_info(self) d["type"] = "named-pipe" return d