You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am only getting started with websockets and asyncio, that's why I will allow myself to ask for help with the next issue.
I am trying to implement webRTC video chat with aiopyramid and websockets on backend. My frontend exactly is like one in this article: link.
It connects with the view from docs:
@view_config(route_name='echo', mapper=WebsocketMapper)
@asyncio.coroutine
def echo(ws):
while True:
message = yield from ws.recv()
if message is None:
break
yield from ws.send(message)
I expect that when I send description to the server I get it on another client. But when I have got gotDescription callback on a client, I get multiple gotIceCandidate callbacks and multiple messages yielded by the view while another client gets nothing.
Logs on the client:
The text was updated successfully, but these errors were encountered:
Can you give me a link to the actual code? The link in that article doesn't go to code that matches the function definitions in the article, so I am wondering if there are discrepancies.
Also, the server in that article has a broadcast function, but the Aiopyramid code you sent me doesn't broadcast, it only responds to it's own client. In other words, your Python code isn't sharing messages with other clients. You need to write the equivalent of
I am only getting started with websockets and asyncio, that's why I will allow myself to ask for help with the next issue.
I am trying to implement webRTC video chat with aiopyramid and websockets on backend. My frontend exactly is like one in this article: link.
It connects with the view from docs:
I expect that when I send description to the server I get it on another client. But when I have got gotDescription callback on a client, I get multiple gotIceCandidate callbacks and multiple messages yielded by the view while another client gets nothing.
Logs on the client:
The text was updated successfully, but these errors were encountered: