-
Configure nginx adding this module with:
./configure (...) --add-module=./ngx-websocket-stat
-
Build nginx with make -j command where n is number of cpu cores on your build machine
-
Configure the module. Use websocket_stat directive on location context to obtain gethered statistic over GET request: location =/ws_stat { websocket_stat; }
- Add connection aging
- Add single connection statistic counter ...