You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed a minor mistake in the readme, the on_error function only takes a single exception argument (because it reimplements it and doesn't only callback the WebSocketClient on_error function).
Here is the correct code example that should be in the README:
importcertstreamdefprint_callback(message, context):
print("Received messaged -> {}".format(message))
defon_open():
print("Connection successfully established!")
defon_error(exception):
# Instance is the CertStreamClient instance that barfedprint("Exception in CertStreamClient! -> {}".format(exception))
certstream.listen_for_events(print_callback, on_open=on_open, on_error=on_error, url='wss://certstream.calidog.io/')
(happy to do a PR if needed)
The text was updated successfully, but these errors were encountered:
Hi, I noticed a minor mistake in the readme, the on_error function only takes a single exception argument (because it reimplements it and doesn't only callback the WebSocketClient on_error function).
Here is the correct code example that should be in the README:
(happy to do a PR if needed)
The text was updated successfully, but these errors were encountered: