diff --git a/screepsapi/screepsapi.py b/screepsapi/screepsapi.py index 3771bbd..2eb0693 100644 --- a/screepsapi/screepsapi.py +++ b/screepsapi/screepsapi.py @@ -523,8 +523,6 @@ def connect(self): logging.getLogger('websocket').addHandler(logging.NullHandler()) websocket.enableTrace(False) - prefix = PTR_PREFIX if ptr else prefix - url = 'wss://' if self.secure else 'ws://' url += self.host if self.host else OFFICIAL_HOST url += self.prefix if self.prefix else ''