NBroadcast ~ Crazy fast broadcast message

Github

Sample site

Usage listen message

const evtSource = new EventSource("https://nbroadcast.deno.dev/<KEY>/<CHANNEL_NAME>");
evtSource.onmessage = function (event) {
    const data = JSON.parse(event.data);
    console.log(data)
}

Usage send message

fetch("https://nbroadcast.deno.dev/<KEY>/<CHANNEL_NAME>", {
    method: "POST",
    body: JSON.stringify(yourdata)
})
.then(data => data.json)
.then((data) => {
    console.log(data)    
})
.catch((err) => {
    console.log(err)
});