Answer the question
In order to leave comments, you need to log in
How to properly clear memory?
I wrote a function to reconnect to the ws channel:
function connect() {
var ws = new WebSocket('ws://...');
ws.on('message', function (message) {
//
})
ws.on('close', function () {
ws.removeAllListeners('message');
setTimeout(connect, 10000);
})
}
Answer the question
In order to leave comments, you need to log in
can be done by standard means:
1 make a menu where the main items will be what is displayed with large buttons
2 child items that will be displayed when hovering below
3 add css, if desired, js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question