开发者

Firefox extension with server socket

I need to write an extension for firefox that accepts data from a socket connection and can send reply messages via the same port. I was wondering if anyone knows of any tutorials or some example code I can look at for accomplishing t开发者_如何学Gohis as I cannot find very many guides for Firefox 4.


If you are using beta 8+, it may be disabled due to security issues.

See here

If you want a socket library that falls back to Flash and then long polling, check out Socket.IO


To do this you can use the nsIServerSocket interface from mozilla.org in javascript to create a socket connection and read in and print out into streams associated with that connection.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜