enablePing() {
    const { userSocketMapping } = this;
    this.pingTimer = setInterval(() => {
      Object.keys(userSocketMapping).forEach((user) => {
        userSocketMapping[user].ping();
      });
    }, 50 * 1000);
  }
// TODO: Let client handles the pings, it offload server load
Let client handles the pings, it offload server load
Let client handles the pings it offload server load
enablePing() {
    const { userSocketMapping } = this;
    this.pingTimer = setInterval(() => {
      Object.keys(userSocketMapping).forEach((user) => {
        userSocketMapping[user].ping();
      });
    }, 50 * 1000);
  }
enablePing ( ) { const { userSocketMapping } = this ; this . pingTimer = setInterval ( ( ) => { Object . keys ( userSocketMapping ) . forEach ( ( user ) => { userSocketMapping [ user ] . ping ( ) ; } ) ; } , 50 * 1000 ) ; }
TODO: Let client handles the pings, it offload server load
TODO : Let client handles the pings it offload server load