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

Setting your role on the server #43

Open
JasterV opened this issue Jun 30, 2021 · 0 comments
Open

Setting your role on the server #43

JasterV opened this issue Jun 30, 2021 · 0 comments

Comments

@JasterV
Copy link

JasterV commented Jun 30, 2021

Summary

I want to init a client and set its role on the session (Publisher or Subscriber or both).
A publisher will only send data.
A subscriber will only receive data.

Motivation

I want to create an app where theres 1 subscriber and multiple publishers but I want them all on the same session.
There are N publishers and 1 subscriber.
I want the server to only route the video of the publishers to the subscriber, and not to the other publishers since they are not going to consume any video, only send.

Describe alternatives you've considered

client.create({
 sid: sid,
 uid: uid,
 signal: signal,
 role: role // Maybe this can be an array of roles
});
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

No branches or pull requests

1 participant