function sendMessageAllUsers({ type, payload }) {
  const usersIds = Object.keys(this.connections);
  usersIds.forEach((userId) => {
    this.connections[userId].forEach((userConnection) => {
      if (userConnection && userConnection.client && userConnection.client.readyState === WebSocket.OPEN) {
        userConnection.client.send(formatWebsocketMessage(type, payload));
      }
    });
  });
}
@description Send a websocket message to all user.
@param {object} event - Event.
@param {string} event.type - Type of event.
@param {object} event.payload - Payload to send.
@example
sendMessageAllUsers(event);