publishSignalingMessage = (conn, room, data) => {
  if (room.key) {
    cryptoutils.encryptJson(data, room.key).then((data) => {
      conn.send({
        type: "publish",
        topic: room.name,
        data: buffer.toBase64(data),
      });
    });
  } else {
    conn.send({ type: "publish", topic: room.name, data });
  }
}
@param {SignalingConn} conn
@param {Room} room
@param {any} data