define socket io code example Example 1: socket io npm install socket.io Example 2: socket io npm install --save socket.io