socket-flus

    1.0.6 • Public • Published

    socket-flus

    A third repo for socket load test.

    Get Start

    let options = {
      url: array<string> | string, // the websocket url, like 'http://localhost:3000/chatroom'
      connectionCount: number,     // optional
      durationCount: number,       // optional
      duration: number             // optional, default is 10s
    };
     
    let socket_flus = new SocketFlus(options);
    socket_flus.connTest().then((report) => {
      console.log(report);
    });
     
    socket_flus.messageTest(event, message).then((report) => {
      console.log(report);
    });

    Keywords

    none

    Install

    npm i socket-flus

    DownloadsWeekly Downloads

    7

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    11.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • terrynie