Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Hybrid Connections HTTP Sample throws ReferenceError: Extensions is not defined #67

Open
TamasKeul opened this issue Oct 29, 2021 · 0 comments

Comments

@TamasKeul
Copy link

Description

  1. Clone the repo then run npm install .
  2. Start listener.js with listener SAS credentials.
  3. Initiate a http request from an App Service

Actual Behavior

The listener.js fails with the following error:

C:\dev\...\node_modules\hyco-https\lib\HybridConnectionHttpsServer.js:475
  var extensionsOffer = Extensions.parse(req.headers['sec-websocket-extensions']);
                        ^
**ReferenceError: Extensions is not defined**
    at accept (C:\dev\...\node_modules\hyco-https\lib\HybridConnectionHttpsServer.js:475:25)
    at WebSocket.server.controlChannel.onmessage (C:\...\node_modules\hyco-https\lib\HybridConnectionHttpsServer.js:420:7)
    at WebSocket.onMessage (C:\dev\...\node_modules\ws\lib\event-target.js:120:16)
    at WebSocket.emit (events.js:400:28)
    at Receiver.receiverOnMessage (C:\dev\....\node_modules\ws\lib\websocket.js:789:20)
    at Receiver.emit (events.js:400:28)
    at Receiver.dataMessage (C:\dev\...\node_modules\ws\lib\receiver.js:422:14)
    at Receiver.getData (C:\dev\...\node_modules\ws\lib\receiver.js:352:17)
    at Receiver.startLoop (C:\dev\...\node_modules\ws\lib\receiver.js:138:22)
    at Receiver._write (C:\dev\...\node_modules\ws\lib\receiver.js:74:10)

Expected Behavior

The sample app should not crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant