Using Node.js with ASE did not work #4412
Labels
bug
Indicates an unexpected problem or an unintended behavior.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Versions
What package version of the SDK are you using. 4.14.1
What nodejs version are you using 18
What browser version are you using N/A
What os are you using N/A
Describe the bug
Use DirectLineJS ASE or NodeWebSocket.connect() to connect to ASE or any Web Socket server.
To Reproduce
Steps to reproduce the behavior:
Using DirectLineJS
Using
NodeWebSocket.connect()
Expected behavior
It should connect and will not throw any exceptions.
Screenshots
Using DirectLineJS
It should connect.
Using
NodeWebSocket.connect
It should not use URL as hostname. Because it is using the URL as the hostname, DNS cannot resolve
wss://your-bot.azurewebsites.net/
. Instead, it should resolveyour-bot.azurewebsites.net
.Additional context
NodeWebSocket.connect
is not implemented correctly. Currently, it is:It is broken in multiple ways:
open
event), instead of closeI believe
NodeWebSocket.connect
never work and never tested properly.The text was updated successfully, but these errors were encountered: