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

feat: support topic on data packets #111

Merged
merged 2 commits into from
Dec 4, 2023
Merged

feat: support topic on data packets #111

merged 2 commits into from
Dec 4, 2023

Conversation

theomonnom
Copy link
Member

No description provided.

@@ -80,7 +80,8 @@ async def publish_data(
self,
payload: Union[bytes, str],
kind: DataPacketKind.ValueType = DataPacketKind.KIND_RELIABLE,
destination_sids: Optional[List[Union[str, "RemoteParticipant"]]] = None,
destination_sids: List[Union[str, "RemoteParticipant"]] = [],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we switch to identities now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, planned

@theomonnom theomonnom merged commit 20c95e1 into main Dec 4, 2023
16 checks passed
@theomonnom theomonnom deleted the theo/topic branch December 4, 2023 17:13
data,
event.data_received.kind,
rparticipant,
event.data_received.topic,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is problematic to add arguments to callbacks.. my code was just broken with this error:

TypeError: on_data_received() takes 4 positional arguments but 5 were given

we really need to either:

  • avoid changing callback parameters
  • pass back an object that can be modified

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.

3 participants