Using coTurn TCP allocations with DataChannel

生来就可爱ヽ(ⅴ<●) 提交于 2020-03-20 16:56:57

问题


I have configured a coturn server which I need to use with DataChannel for a chat app.

I am trying to reach a point where I can get the coturn server provide me with a tcp allocation.

I am using the standard call of RTCPeerConnection in JS client, providing the turn URI, username and credentials.

The transport I am providing in the URI params is TCP ?transport=tcp.

With all this, I am always receiving a UDP allocation and the server logs ChannelBind requests (UDP based)

Question:

How can I achieve TCP allocations throught webRTC client, to guarantee proper data delivery of the chat app in case of using my relay server?


回答1:


RFC 6062, opening a TCP port on the TURN server is not supported by WebRTC. It is optional in the spec and nobody needs it since reliability is provided by SCTP.

TCP in the turn uri refers to the protocol between the client and the TURN server



来源:https://stackoverflow.com/questions/60282798/using-coturn-tcp-allocations-with-datachannel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!