Skip to content

Commit b1044a3

Browse files
authored
Merge pull request #262 from nicolasmiller/fix_websocket_client_startup
Fix websocket client heartbeat startup failure
2 parents c83d17b + 267bdd1 commit b1044a3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

gdax/websocket_client.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ def _connect(self):
7474

7575
self.ws = create_connection(self.url)
7676

77-
if self.type == "heartbeat":
78-
sub_params = {"type": "heartbeat", "on": True}
79-
else:
80-
sub_params = {"type": "heartbeat", "on": False}
8177
self.ws.send(json.dumps(sub_params))
8278

8379
def _listen(self):
@@ -98,8 +94,6 @@ def _listen(self):
9894
self.on_message(msg)
9995

10096
def _disconnect(self):
101-
if self.type == "heartbeat":
102-
self.ws.send(json.dumps({"type": "heartbeat", "on": False}))
10397
try:
10498
if self.ws:
10599
self.ws.close()

0 commit comments

Comments
 (0)