🌐Websocket

Example of a WS message for the backend :

const newSocket = new WebSocket("ws://localhost:8765");

const message = {
    scripts: {
        whatsmyname: {
            value: "JohnDoe",
            categories: "all",
        },
    }
}    

newSocket.addEventListener("open", () => {
    console.log("WebSocket opened");
    newSocket.send(JSON.stringify(message));
});

List of valid scripts options Websocket

🐛 Error :

Invalid characters :