javascript - EventSource Polyfill -
i have created self-hosted servicestack service runs in windows service based on showcase chat application.
however, not getting further trying write client javascript (using aurelia skeleton) app opposed servicestack.razor application.
i have added eventsource polyfill application. however, when import eventsource js file want use eventsource library following exception:
error [app-router] error: unable property 'xmlhttprequest' of undefined or null reference
error loading http://localhost:9000/dist/chats.js
it failing on following line in eventsource.js:
var xhr = global.xmlhttprequest;
so, having had communication creator of servicestack have added reference ss-utils (which in turn uses eventsource.js). has rectified problem.
Comments
Post a Comment