aboutsummaryrefslogtreecommitdiff
path: root/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.ts b/index.ts
index 6458124..8b01536 100644
--- a/index.ts
+++ b/index.ts
@@ -15,7 +15,7 @@ db.once('open', () => {
// Add any new real-time connection to the `everybody` channel
app.on('connection', connection => app.channel('everybody').join(connection));
// Publish all events to the `everybody` channel
-app.publish(data => app.channel('everybody'));
+app.publish(() => app.channel('everybody'));
const port = 3030;