Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/messaging header #107

Merged
merged 4 commits into from
Oct 28, 2024
Merged

Feature/messaging header #107

merged 4 commits into from
Oct 28, 2024

Conversation

voluntas
Copy link
Member

@voluntas voluntas commented Oct 28, 2024

This pull request introduces significant enhancements and refactoring to the messaging functionality in the Sora Python SDK. Key changes include the addition of a new send_message() method, updates to the internal handling of data channels, and the introduction of new tests to verify messaging capabilities.

Enhancements to Messaging Functionality:

  • tests/client.py: Introduced new send_message() and recv_message() methods to handle messaging over data channels, replacing the previous send() method. Added internal dictionaries to manage data channel events and message queues. ([[1]](https://github.com/shiguredo/sora-python-sdk/pull/107/files#diff-479c8981e6ebf1364a8e3e84d8fb328ce5bcd517560c6470750a9a3de67133d3L101-R102), [[2]](https://github.com/shiguredo/sora-python-sdk/pull/107/files#diff-479c8981e6ebf1364a8e3e84d8fb328ce5bcd517560c6470750a9a3de67133d3L202-R212), [[3]](https://github.com/shiguredo/sora-python-sdk/pull/107/files#diff-479c8981e6ebf1364a8e3e84d8fb328ce5bcd517560c6470750a9a3de67133d3R370-R371), [[4]](https://github.com/shiguredo/sora-python-sdk/pull/107/files#diff-479c8981e6ebf1364a8e3e84d8fb328ce5bcd517560c6470750a9a3de67133d3R393-R398))

Documentation Updates:

  • CHANGES.md: Documented the addition of the send_message() method and its relationship with on_message() and send_data_channel(). ([CHANGES.mdR19-R22](https://github.com/shiguredo/sora-python-sdk/pull/107/files#diff-d975bf659606195d2165918f93e1cf680ef68ea3c9cab994f033705fea8238b2R19-R22))

Configuration Updates:

  • .env.template: Added a new TEST_API_URL configuration entry. ([.env.templateR22](https://github.com/shiguredo/sora-python-sdk/pull/107/files#diff-749e06f64632f62a0c0dfbf4c4f3850e27e94ac109aa121fabd5c29469ae88deR22))

Test Enhancements:

  • tests/test_messaging.py: Updated existing tests to use the new send_message() method. ([tests/test_messaging.pyL49-R50](https://github.com/shiguredo/sora-python-sdk/pull/107/files#diff-f1780694c9953ba3f3d9883334be0517587a8194246078dc5d0a5ba720a96cf9L49-R50))
  • tests/test_messaging_header.py: Added a new test to verify messaging with headers, ensuring data channels are correctly established and messages are sent and received as expected. ([tests/test_messaging_header.pyR1-R88](https://github.com/shiguredo/sora-python-sdk/pull/107/files#diff-5c80970c9d4996ac62f9575ba92749ced7cb2437d056f54be5ef7490affff592R1-R88))

@voluntas voluntas merged commit e5d4ef3 into develop Oct 28, 2024
30 checks passed
@voluntas voluntas deleted the feature/messaging-header branch October 28, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant