I'm using Google App Engine/Managed VMs to develop a nodeJS application using web sockets.
As part of the app, the front end needs to connect using Websockets e.g.
connection = new WebSocket('wss://127.0.0.1:3001');
The bit that I'm struggling with is how to ensure that the SSL part works. My current code to start the WebSocketServer is:
var WebSocketServer = require('ws').Server;
var wss = new WebSocketServer({port:3001});
but this only creates a standard server (ie ws://127.0.0.1:3001).
My question is, using WebSocketServer, how do I create a WebSocketServer for use with SSL?