Skip to content

Commit a176ba7

Browse files
committed
Updated readme to reflect new WebSocket workflow
1 parent cfd0c65 commit a176ba7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ wsClient.close()
216216
### WebsocketClient Methods
217217
The ```WebsocketClient``` subscribes in a separate thread upon initialization. There are three methods which you could overwrite (before initialization) so it can react to the data streaming in. The current client is a template used for illustration purposes only.
218218

219-
- open - called once, *immediately before* the socket connection is made
220-
- message - called once for every message that arrives and accepts one argument that contains the message of dict type.
221-
- closed - called once after the websocket has been closed.
219+
- onOpen - called once, *immediately before* the socket connection is made
220+
- onMessage - called once for every message that arrives and accepts one argument that contains the message of dict type.
221+
- onClose - called once after the websocket has been closed.
222222
- close - call this method to close the websocket connection (do not overwrite).
223223
```python
224224
import GDAX, time

0 commit comments

Comments
 (0)