This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const WebSocket = require("ws"); | |
const redis = require("redis"); | |
const subscriber = redis.createClient({ | |
url: "redis://localhost:6379" | |
}); | |
const publisher = subscriber.duplicate(); | |
const WS_CHANNEL = "ws:messages"; | |
const mockedUsers = [ |
OlderNewer