File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,19 @@ same `channel_pat` will overwrite the old handler.
285285Deregisters the event handler function that was previously registered via ` on ` or
286286` register ` method.
287287
288+ #### Debugging
289+ Websocket exceptions may occur during execution.
290+ It will usually happen during the ` consume() ` method, which basically is the
291+ websocket steady-state.<br >
292+ exceptions during the consume method may occur due to:
293+ - server disconnections
294+ - error while handling the response data
295+
296+ We handle the first issue by reconnecting the websocket every time there's a disconnection.
297+ The second issue, is usually a user's code issue. To help you find it, we added a flag to the
298+ StreamConn object called ` debug ` . It is set to False by default, but you can turn it on to get a more
299+ verbose logs when this exception happens.
300+ Turn it on like so ` StreamConn(debug=True) `
288301
289302---
290303# Polygon API Service
You can’t perform that action at this time.
0 commit comments