socket.io connect to page code example
Example: import socket io frontend
<script src="/socket.io/socket.io.js"></script><script> const socket = io('http://localhost');</script>
<script src="/socket.io/socket.io.js"></script><script> const socket = io('http://localhost');</script>