socketio library js code example
Example 1: socket.io cdn
<script src="https://cdn.socket.io/socket.io-3.0.1.min.js"></script>
Example 2: socket io
npm install --save socket.io
<script src="https://cdn.socket.io/socket.io-3.0.1.min.js"></script>
npm install --save socket.io