Skip to content

Instantly share code, notes, and snippets.

View mahadansar's full-sized avatar
🎗️

Mahad Ansar mahadansar

🎗️
View GitHub Profile
@mahadansar
mahadansar / pusher.js
Created March 31, 2020 01:12
Pusher - Webhook - Maintain State of Online Channels inside a global variable
// Pusher Logic inside a Web Hook post api to make a list of connections with channels
// online users stored in a global variable
var onlineUsers = [
{ channel: "23", name: "channel_occupied" },
{ channel: "9421321", name: "channel_occupied" },
{ channel: "941", name: "channel_occupied" }
];
// Pusher web hook fires off the event via webhook
@mahadansar
mahadansar / cloudSettings
Last active November 3, 2020 04:39
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-11-03T17:39:11.174Z","extensionVersion":"v3.4.3"}