microsoft / HoloJS

Provides a framework for creating holographic apps using JavaScript and WebGL.
MIT License
1.19k stars 113 forks source link

Fix DOM and XHR issues to make socket.io work #120

Closed Almost-Done closed 6 years ago

Almost-Done commented 6 years ago

Remove proxy-ing from DOM.JS. The intent of the proxy is to hide internal DOM implementation from scripts, as per W3 spec. However, that is not a goal in HoloJS and proxying can be taken out.

Remove global.location and window.location from the DOM. It confuses socket.io into thinking a cross domain request is required, and JSONP is not supported in HoloJS.

Fix a bug in XmlHttpRequest where setting content type on HttpStringContent would cause a crash.

With the above fixes, socket.io's chat sample appears to be working.