I am trying to use this awesome library to write a simple SSL Websocket server. However, I can't figure out from the examples how to create one. Can you suggest an example? Thanks!
My server always start accepting a connection, but it closes it right after. As a client I am using a simple Typescript I wrote:
const WebSocket = require('ws');
const ws = new WebSocket('wss://localhost:9009', {});
ws.on('open', function open() {
ws.send('something');
});
ws.on('message', function incoming(data) {
console.log(data);
});
The main class creates the socket and the adapter:
Hi,
I am trying to use this awesome library to write a simple SSL Websocket server. However, I can't figure out from the examples how to create one. Can you suggest an example? Thanks!
My server always start accepting a connection, but it closes it right after. As a client I am using a simple Typescript I wrote:
The main class creates the socket and the adapter:
The adapter: