Skip to content

Commit

Permalink
support ptr properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tedivm committed May 25, 2016
1 parent b9f38fe commit f4b6df1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion screeps_console/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ def connect(self):
logging.getLogger('websocket').addHandler(logging.NullHandler())
websocket.enableTrace(False)

url = 'wss://screeps.com/socket/websocket'
if not self.ptr:
url = 'wss://screeps.com/socket/websocket'
else:
url = 'wss://screeps.com/ptr/socket/websocket'

ws = websocket.WebSocketApp(url=url,
on_message=self.on_message,
Expand Down

0 comments on commit f4b6df1

Please sign in to comment.