is it possible pass data between two different browsers?

痞子三分冷 提交于 2019-12-25 16:41:40

问题


I have to pass data between two different browser windows ( Eg: Chrome , Firefox ).

But the two browser windows does not have any parent window.

Assumption: Suppose if I know one browser window name , is it possible to get the data from other browser?

Its is an R&D.


回答1:


Server Option using (node.js)

If you are open to use node.js i suggest you to take a look on Socket.io.

They have a pretty good example of how to communicate on 2 or more browser using the chat example.

Take a look on this demo

Only Client option (using webRTC)

Also if you don't wanna get mess with the server.

Take a quickly look into this post

Update

Seems like the only option we have here its WebRTC

Take a look into this 2 SO.

Can HTML5 Websockets connect 2 clients (browsers) directly without using a server? (P2P)

Do websockets allow for p2p (browser to browser) communication?




回答2:


Yes you can do the communication between two different browser using HTML5 WebSocket



来源:https://stackoverflow.com/questions/28315879/is-it-possible-pass-data-between-two-different-browsers

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