Sebebeb commited on
Commit
0f1b8ae
Β·
verified Β·
1 Parent(s): 2129bc9

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -7
server.js CHANGED
@@ -1,15 +1,9 @@
1
- const https = require('https');
2
  const fs = require('fs');
3
  const path = require('path');
4
  const { WebSocketServer, WebSocket } = require('ws');
5
  const { v4: uuidv4 } = require('uuid');
6
 
7
- // ─── TLS ──────────────────────────────────────────────────────────────────────
8
- const serverOptions = {
9
- cert: fs.readFileSync('cert.pem'),
10
- key: fs.readFileSync('key.pem'),
11
- };
12
-
13
  // ─── In-Memory State ──────────────────────────────────────────────────────────
14
  // sounds[id] = { id, name, data } (data = base64 string)
15
  // notifications[id] = { id, name, heading, body, hyperlink, displayed, soundId }
 
1
+ const http = require('http');
2
  const fs = require('fs');
3
  const path = require('path');
4
  const { WebSocketServer, WebSocket } = require('ws');
5
  const { v4: uuidv4 } = require('uuid');
6
 
 
 
 
 
 
 
7
  // ─── In-Memory State ──────────────────────────────────────────────────────────
8
  // sounds[id] = { id, name, data } (data = base64 string)
9
  // notifications[id] = { id, name, heading, body, hyperlink, displayed, soundId }