Does Apigee support the ws npm module (for websocket) in the free trial cloud version of Edge?

Not applicable

I am using cloud version(free trial).

Error in trace:

*** Error: Cannot find module 'ws' Error: Cannot find module 'ws' at module.js:340 at module.js:280 at module.js:364 at require (module.js:380) at

For every request, I am getting http error 426(Upgrade required).

0 4 523
4 REPLIES 4

ws [server] is not supported in node [not just the trial version], you could however have ws clients in node

@Mukundha Madhavan

Thanks for your response.

That means we can use "ws" npm module for ws client side in node.

So my quick question is do it possible to connect to ws[server] from apigee through node ws[client].

I haven't tried it. It probably should work?

Have you the correct package.json? How did you upload the API proxy?

Does the apiproxy appear to have all the dependencies as resources?

@Dino

I have provided the modules details in package.json, Also I uploaded the API Proxy through apigeedeploytool.