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:

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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -