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

stream channel not working when data channel is used along with stream channel #899

Open
yugkha3 opened this issue Sep 10, 2022 · 3 comments

Comments

@yugkha3
Copy link

yugkha3 commented Sep 10, 2022

peers[connectedUserSocketID].on('stream', (stream) => {
		streams.set(connectedUserSocketID, stream);
		store.dispatch(setStreams({ connectedUserSocketID }));
	});

When i only use the above event listner 'stream' everything works fine. But when I use both the below 'stream' and 'data' event listners the 'stream' event does not trigger properly. Here's the code with both stream listners:

peers[connectedUserSocketID].on('stream', (stream) => {
		streams.set(connectedUserSocketID, stream);
		store.dispatch(setStreams({ connectedUserSocketID }));
	});
peers[connectedUserSocketID].on('data', (data) => {
		const messageData = JSON.parse(data);
		appendMessage(messageData);
	})
@yugkha3 yugkha3 changed the title stream event not working when data event is used with stream element stream channel not working when data channel is used along with stream channel Sep 12, 2022
@ffxixslh
Copy link

I've got the same problem. Have you got it fixed yet?🤣

@yugkha3
Copy link
Author

yugkha3 commented Oct 5, 2022

I've got the same problem. Have you got it fixed yet?🤣

no man, wbu?

@luyaocode
Copy link

I have the same problem too.

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

3 participants