Install Dependencies and Types
Video Lecture
Description
Create Socket Server Script, Install Dependencies and Types
src/server/server.ts
Note
In the video, my server.ts
is using Socket.IO 2.3.0
, it now uses Socket.IO 3.0.4
which means that line 14 has now been updated from
const io = socketIO(this.server)
to
const io = new socketIO.Server(this.server);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
Install Dependencies and Types
Install Types for Nodejs
1 |
|
Install SocketIO
1 |
|
Install Types for SocketIO
1 |
|