npm socket io client code example
Example 1: socket.io cdn
<script src="https://cdn.socket.io/socket.io-3.0.1.min.js"></script>
Example 2: install socket.io
npm i socket.io
Example 3: npm socket io
// with npm
npm install socket.io
// with yarn
yarn add socket.io