Initial PlayBull release with Trilogy Hub integration.
Includes homelab deploy tooling, image position/zoom manifest persistence, and full trading/casino stack. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
15
server/realtime.js
Normal file
15
server/realtime.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Feed } from './db.js';
|
||||
|
||||
let io = null;
|
||||
export function setIO(server) { io = server; }
|
||||
export function getIO() { return io; }
|
||||
|
||||
export function broadcast(event, payload) {
|
||||
if (io) io.emit(event, payload);
|
||||
}
|
||||
|
||||
// Globaler Aktivitaets-Feed (Wins, Trades, Manipulationen) fuer alle sichtbar.
|
||||
export function pushFeed(kind, text) {
|
||||
Feed.add(kind, text);
|
||||
broadcast('feed', { kind, text, ts: Date.now() });
|
||||
}
|
||||
Reference in New Issue
Block a user