surrealdb / surrealdb.py

SurrealDB SDK for Python
https://surrealdb.com
Apache License 2.0
181 stars 53 forks source link

Feature message multiplexing #81

Closed jonathanrbarney closed 6 months ago

jonathanrbarney commented 10 months ago

Thank you for submitting this pull request! We appreciate you spending the time to work on these changes.

What is the motivation?

To allow the use of the same WS connection for multiple queries at the same time (thread safety) and multiplexing of incoming live query results from multiple streams.

Type of Change

What does this change do?

Provides for use of a connection manager to route incoming requests from the web socket, and handles ensuring every request is replied to with the actual response rather than just the first one to come in.

This is additional implementation on top of #78

Is this related to any issues?

34 #78

Have you read the Contributing Guidelines?