Reading from udp port in browser

后端 未结 2 1091
孤城傲影
孤城傲影 2020-11-29 05:10

Aside from Java Applet, is there anyway we can read from an UDP socket? I know websockets are TCP sockets, but I need to communicate with a server via udp sockets, anything

2条回答
  •  旧巷少年郎
    2020-11-29 05:54

    You can use both TCP and UDP connections with the chrome.socket API, but this is only for Packaged Apps (i.e. apps that are bundled in a container to be run as desktop apps).

    The API was available for a while for Chrome extensions, when it was in experimental status (see this answer, from a user who works at Google and was co-presenter for Packaged Apps at Google I/O 2012)

提交回复
热议问题