socket io client npm how to use code example Example: npm socket io // with npm npm install socket.io // with yarn yarn add socket.io