node.js - Is it possible to get window instance somehome in the javascript? -
i tring write stand alone node.js application, in browser api .
example:
window.rtcsessiondescription
is possible this?
if want use browser api in node, if code running in browser, can use modules like:
- https://www.npmjs.com/package/node-dom
- https://www.npmjs.com/package/js-dom
- https://www.npmjs.com/package/nodejs-dom
- https://www.npmjs.com/package/dom-layer
if want access actual window
object of browser doing request node application serving, won't able access directly. have serve javascript browser access browser's api on behalf , communicate node application via http, websocket or in other way.
Comments
Post a Comment