walkor / workerman

An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.
http://www.workerman.net
MIT License
11.17k stars 2.27k forks source link

Give the ability for status call to output in JSON format #1064

Open eharris2000 opened 3 weeks ago

eharris2000 commented 3 weeks ago

Added new -jl flag, that only does something for the status call. When called, existing formatProcessStatusData evaluates boolean flag. If the flag is set, then call new formatConnectionStatusDataJson to turn formatted output into JSON.

walkor commented 3 weeks ago

Hello eharris2000,
This PR doesn't seem to be useful for other users. If you need this format of data, I suggest you implement it locally in your project using the extend keyword.