document.addEventListener('DOMContentLoaded', function () { var connection = new signalR.HubConnectionBuilder() .withUrl("http://nuc:9653/pgnotify", { skipNegotiation: true, transport: signalR.HttpTransportType.WebSockets }).build(); connection.on("PGNotify", function (message) { console.log("Notification received --> ", message); }); async function start() { console.log("Starting SignalR client"); await connection.start(); console.log("SignalR connected"); }; start(); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)