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
importasynciofromsurrealdbimportAsyncSurrealDBasyncdefhandle_notifications():
db=AsyncSurrealDB(url="ws://localhost:8000")
awaitdb.connect()
awaitdb.use("test", "test")
awaitdb.sign_in("root", "root")
# Start a live querylive_id=awaitdb.live("users")
# Process live notificationsnotifications=awaitdb.live_notifications(live_id)
whileTrue:
notification=awaitnotifications.get()
print(f"Live Notification: {notification}")
# Run the notification handlerasyncio.run(handle_notifications())
Is there an existing issue for this?
I have searched the existing issues
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Description
1)https://github.com/surrealdb/surrealdb.py?tab=readme-ov-file#basic-usage
it should be
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: