<script src="/socket.io/socket.io.js"></script> <script> var socket = io(); </script> code example
Example: socket io script
<script src="/socket.io/socket.io.js"></script>
<script>
const socket = io();
</script>
<script src="/socket.io/socket.io.js"></script>
<script>
const socket = io();
</script>