Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vancik01 committed Apr 20, 2024
1 parent 6476f9f commit 05c3c5d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ const runServer = () => {
app.post("/events/:eventId/signOff", signOffEvent);
app.get("/events/:eventId/live", getLiveEventData);
app.get("/events/:eventId/reporting", getEventReporting);
app.post("/events/:eventId/publishAnnouncement", (req, res) =>
publishAnnouncement(req, res, eventConnections)
);
app.post("/events/:eventId/publishAnnouncement", (req, res) => {
console.log("WebSocket connection attempted.");
publishAnnouncement(req, res, eventConnections);
});

app.ws("/events/:eventId/announcements/subscribe", (ws, req) => {
websocketHandler(ws, req, eventConnections);
Expand Down

0 comments on commit 05c3c5d

Please sign in to comment.