remover evento socket io code example
Example 1: socket io script
<script src="/socket.io/socket.io.js"></script>
<script>
const socket = io();
</script>
Example 2: "socket.removeListener"
// This remove listener of specific socket (user)
socket.removeAllListeners("news");