How to talk to UDP sockets with HTML5?

前端 未结 6 1080
执笔经年
执笔经年 2020-12-05 02:07

What I have : A C++ application server running, Ready to send data to client which is supposed to a HTML5 page or app.

What I want :

6条回答
  •  悲哀的现实
    2020-12-05 02:25

    It looks like UDP for web is still an active area of development and potential standards creation. Posting this answer to record some new info current as of May 2020.

    The following whitepaper has outlined a potential path forward that satisfies the security needs for an "unreliable-unordered" protocol: https://gafferongames.com/post/why_cant_i_send_udp_packets_from_a_browser/

    There are extensions to desktop Chrome and desktop Firefox that are in active development. https://github.com/RedpointGames/netcode.io-browser The way mobile browsers are designed prevents this kind of modification from being added at present (good security reasons again) but could be added down the road.

提交回复
热议问题