admin管理员组文章数量:1323586
Researching on the internet ( How to send udp to udp node.js server?, JavaScript WebSockets with UDP?) I have found that it is not possible to send udp packets with javascript.
On the other hand some pages claim that chrome browser is able to do so. For example the link:
claims that google chrome is able to send udp packets. Maybe I am doing something wrong. If it is true that chrome can send udp packets I will appreciate if someone can post a hello world example. I have tried the example from the link I showed and it does not work. Maybe I am doing something wrong.
Researching on the internet ( How to send udp to udp node.js server?, JavaScript WebSockets with UDP?) I have found that it is not possible to send udp packets with javascript.
On the other hand some pages claim that chrome browser is able to do so. For example the link:
http://blog.alexmaccaw./chrome-tcp-udp
claims that google chrome is able to send udp packets. Maybe I am doing something wrong. If it is true that chrome can send udp packets I will appreciate if someone can post a hello world example. I have tried the example from the link I showed and it does not work. Maybe I am doing something wrong.
Share Improve this question edited May 23, 2017 at 11:50 CommunityBot 11 silver badge asked Dec 20, 2012 at 3:44 Tono NamTono Nam 36.1k84 gold badges325 silver badges492 bronze badges 2- 3 From that page: "Chrome Canary now has support for raw TCP and UDP sockets in its ‘experimental’ APIs. These features are only available for extensions and, although documented, are hidden for the moment". What have you tried that did not work? – Bergi Commented Dec 20, 2012 at 3:49
- You are right I should paid more atention when reading instead of jumping straight to the code. Thanks for pointing that out. I guess that should be an answer – Tono Nam Commented Dec 20, 2012 at 5:11
1 Answer
Reset to default 5From the linked page:
Chrome Canary now has support for raw TCP and UDP sockets in its ‘experimental’ APIs. These features are only available for extensions and, although documented, are hidden for the moment.
So, develop an extension and it should work. Actually, that article from May '12 seems to be outdated as the chrome.socket
module now has lost its experimental
status. For the HelloWorld, you might check out their udp sample which is linked from the official pages.
本文标签: javascriptSend udp packet from chromeStack Overflow
版权声明:本文标题:javascript - Send udp packet from chrome - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742099815a2420752.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论