()
| 5 | let wsConnections = new Set<ElysiaWS<any, any>>(); |
| 6 | |
| 7 | function dispatch() { |
| 8 | wsConnections.forEach((connection) => { |
| 9 | // console.log("sending refresh"); |
| 10 | connection.send("refresh"); |
| 11 | }); |
| 12 | } |
| 13 | |
| 14 | const port = process.argv[2] || 3001; |
| 15 |