Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- GIT
- cookie
- typeORM
- flask
- JavaScript
- Sequelize
- Python
- nestjs
- nodejs
- 게임
- TypeScript
- MongoDB
- class
- jest
- AWS
- mongoose
- dfs
- Express
- MySQL
- Nest.js
- OCR
- 자료구조
- 정렬
- Dinosaur
- 공룡게임
- Bull
- react
- Queue
- game
Archives
- Today
- Total
목록websocket (1)
포시코딩
1월25일 - WebSocket -> socket.io 변경을 하며
개요 오늘은 기존에 WebSocket으로 구현했던 신청 알림 기능을 socket.io로 바꾸는 과정을 진행했다. 기존 WebSocket로 만든 코드 SocketManager.js const http = require('http'); const WebSocket = require('ws'); class SocketManager { constructor(app) { this.server = http.createServer(app); this.wss = new WebSocket.Server({ server: this.server }); this.load(); } static sockets = []; load = () => { this.wss.on('connection', (socket) => { SocketM..
TIL
2023. 1. 25. 19:44