Comments (8)
Any reason to think it doesn't? I have heard from folks who have it running on servers.
from botframework-directlinejs.
I tried to use it on Node and it goes only up-to 'Connecting'. Debugging showed that it throws
Error: XMLHttpRequest is not supported by your browser
at getXMLHttpRequest (..\node_modules\rxjs\observable\dom\AjaxObservable.js:45:19)
at Object.createXHR (..\node_modules\rxjs\observable\dom\AjaxObservable.js:93:71)
at Object.tryCatcher (..\node_modules\rxjs\util\tryCatch.js:6:31)
at AjaxSubscriber.send (..\node_modules\rxjs\observable\dom\AjaxObservable.js:191:50)
at new AjaxSubscriber (..\node_modules\rxjs\observable\dom\AjaxObservable.js:180:14)
at AjaxObservable._subscribe (..\node_modules\rxjs\observable\dom\AjaxObservable.js:115:16)
at AjaxObservable.Observable._trySubscribe (..\node_modules\rxjs\Observable.js:57:25)
at AjaxObservable.Observable.subscribe (..\node_modules\rxjs\Observable.js:45:27)
at MapOperator.call (..\node_modules\rxjs\operator\map.js:54:23)
at Observable.subscribe (..\node_modules\rxjs\Observable.js:42:22)
The hack from rjxs worked but I wonder if there is an out-of-box way?
global.XMLHttpRequest = require("xhr2");
from botframework-directlinejs.
Nope, sounds like you've found a good working solution. Would love a PR to the README to help others with this problem.
from botframework-directlinejs.
@sunseaandpalms Hi, can you explain how you applied rxjs fix you mentioned? Do you have working DirectLine under NodeJS?
from botframework-directlinejs.
I've added
global.XMLHttpRequest = require("xhr2");
to the top of my main index.js
file, but still DirectLine connection do not work
from botframework-directlinejs.
Ok, looks like adding global.XMLHttpRequest = require("xhr2");
to the top of the main .js
file, can solve this issue. I wasn't sending any messages, that's why connection status was not updating.
from botframework-directlinejs.
Would be good to know if the xhr2
trick still functions back in DOM-land. Perhaps then we can have it in master?
from botframework-directlinejs.
I'd hate to do that, because that would make the client build bigger.
from botframework-directlinejs.
Related Issues (20)
- Automated Tests With BotFramework-DirectLineJS HOT 6
- Whether to support the wechat mini program HOT 1
- Hello, how to send by directline, the ID of my QA environment? HOT 2
- Please create an Offline DirectLine Emulation that is supported by Microsoft.
- DirectlineStreaming doesn't work with Node.js HOT 7
- Error with Power Virtual Agent: Site Missing code 403 from https://directline.botframework.com/v3/directline/conversations HOT 1
- DirectlineStreaming - Retrying connection after end HOT 5
- Update webpack target for modern Node HOT 1
- DirectLineStreaming: unhandled rejection from connectWithRetryAsync in activity$
- While sending attachment, activity API was not triggering using botframework-directlinejs HOT 2
- Post an activity with attachment occurs 502 HOT 3
- Attachements limitation and expiry on DirectLine HOT 1
- DirectlineStreaming: Errors on disconnect are written to console HOT 2
- networkInformation: Switching network type, then switching back again, results in RECONNECT_REJECTED HOT 1
- Angular 15 with botframework-directlinejs does not compile due to typings errors. HOT 3
- [Error] NetworkInformation, missing Interface. HOT 4
- Mocking the WebSocket URL for end to end testing using playwright/cypress. HOT 2
- Application crashes when refresh token returns an error HOT 2
- Receiving repeated user input as part of response from direct line bot HOT 1
- Multiple Continuous API Requests Issue HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botframework-directlinejs.