npm i socketio code example Example: npm socket io // with npm npm install socket.io // with yarn yarn add socket.io