Help please, my client side listeners for socket.io suddenly stopped working

It was working and suddenly they stopped working. Although server is receiving data
here is the server file

    var io = req.app.get('io');
    io.on('connection', function (socket) {
        console.log(req.session.name + " joined the board");
 socket.on('coords', function (mX, mY, r) {
           // console.log("mX: " + mX + ", mY: " + mY + ", r: " + r);
           // console.log("[server] data reached the servers" );
            io.emit('coords', mX, mY, r);
        });
        socket.on('error', function (err) {

            console.log("we have a situation: " +err);

        });

here is the client file

 var socket = io();
   
  
    var collab = function (mX, mY, r) {
       
        socket.emit('coords', mX, mY, r);
       
    
    }
    socket.on('coords', function (mX, mY, r) {

        fill(mX, mY, r);
        noStroke();
        ellipse(mX, mY, 10, r);

    });