Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
hardikroongta8 committed Mar 29, 2024
1 parent 27e4e2d commit 7ff63f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const server = http.createServer(app);
const wss = new WebSocket.Server({ noServer: true });

server.on('upgrade', (req, socket, head) => {
console.log(req.url);
if(req.url === '/ws'){
wss.handleUpgrade(req, socket, head, (ws) => {
wss.emit('connection', ws, req);
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ services:
- '7500:4000'
env_file:
- .env.dev
networks:
- one-stop-2021_default
# networks:
# - one-stop-2021_default

networks:
one-stop-2021_default:
external: true
# networks:
# one-stop-2021_default:
# external: true

0 comments on commit 7ff63f8

Please sign in to comment.