notify(action, session) {
    fetch(this.config.notify.url, {
      method: "POST",
      body: JSON.stringify({
        id: session.id,
        ip: session.ip,
        app: session.streamApp,
        name: session.streamName,
        query: session.streamQuery,
        protocol: session.protocol,
        createtime: session.createTime,
        endtime: session.endTime,
        inbytes: session.inBytes,
        outbytes: session.outBytes,
        filePath: session.filePath,
        action: action,
      }),
    }
    ).then((res) => {
      if (res.status !== 200) {
        session.close();
      }
    }).catch((err) => {
  
    });
  }
@param {string} action 
@param {BaseSession} session