websockets: static type fix

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-08-09 06:11:32 -04:00
parent e82fe46c11
commit 942d595bc2
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ class WebSocket(WebSocketHandler, Subscribable):
self.rpc = self.wsm.rpc
self._uid = id(self)
self.is_closed: bool = False
self.ip_addr: str = self.request.remote_ip
self.ip_addr: str = self.request.remote_ip or ""
self.queue_busy: bool = False
self.pending_responses: Dict[int, asyncio.Future] = {}
self.message_buf: List[Union[str, Dict[str, Any]]] = []