Closed compulim closed 1 year ago
@compulim I can now start the connection, but if I get an error, an unhandled exception is thrown from here, and I can't find a way to handle it. Looks similar to https://github.com/microsoft/BotFramework-DirectLineJS/issues/170.
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.