0.15.7 • Published 10 months ago

@colyseus/loadtest v0.15.7

Weekly downloads
196
License
MIT
Repository
github
Last release
10 months ago

Demo

asciicast

Usage

Install the tool globally in your system.

npm install -g @colyseus/loadtest
$ colyseus-loadtest --help

Options:
    --endpoint: WebSocket endpoint for all connections (default: ws://localhost:2567)
    --room: room handler name
    --numClients: number of connections to open

Example:
    colyseus-loadtest example/bot.ts --endpoint ws://localhost:2567 --room state_handler

Scripting

You may use either JavaScript or TypeScript for scripting your connections:

See below the methods that are called automatically, if implemented. (They are all optional.)

requestJoinOptions (i)

Should return a plain object containing the options for client connection i to join the room provided as an argument.

onJoin ()

Triggered when the client successfully joins in the room.

onMessage (message)

Triggered when the server sends a message to this client, or broadcasts to everyone.

onStateChange (state)

Triggered when the room state changes in the server-side.

onLeave ()

Triggered when the client leaves the room.

onError (err)

Triggered whenever an error has occurred in the room handler.

License

MIT.

0.15.7

10 months ago

0.15.4

12 months ago

0.15.5

12 months ago

0.15.6

12 months ago

0.15.3

1 year ago

0.16.0-alpha.1

1 year ago

0.16.0-preview.3

12 months ago

0.16.0-preview.4

12 months ago

0.15.2

2 years ago

0.15.0

2 years ago

0.15.1

2 years ago

0.15.0-preview.1

2 years ago

0.15.0-preview.2

2 years ago

0.15.0-preview.3

2 years ago

0.15.0-preview.6

2 years ago

0.15.0-preview.7

2 years ago

0.15.0-preview.8

2 years ago

0.15.0-preview.9

2 years ago

0.14.8

3 years ago

0.15.0-preview.0

4 years ago

0.14.7

4 years ago

0.14.5

4 years ago

0.14.6

4 years ago

0.14.6-alpha.0

4 years ago

0.14.6-alpha.1

4 years ago

0.14.6-alpha.2

4 years ago

0.14.5-alpha.0

4 years ago

0.14.6-alpha.3

4 years ago

0.14.4

4 years ago

0.14.3

4 years ago

0.14.4-alpha.1

4 years ago

0.14.4-alpha.0

4 years ago

0.14.2

5 years ago

0.14.1

5 years ago

0.14.0

5 years ago

0.14.0-alpha.0

5 years ago

0.13.1

5 years ago

0.13.0

5 years ago

0.12.0

5 years ago

0.11.3

6 years ago

0.11.2

6 years ago

0.11.1

6 years ago

0.11.0

6 years ago

0.10.2

6 years ago

0.10.1

6 years ago

0.10.1-alpha.1

6 years ago

0.10.1-alpha.0

6 years ago

0.10.0

6 years ago

0.10.0-alpha.0

6 years ago

0.9.0

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago