API使用:
- 在启动laraver-echo-server前执行以下命令:
laravel-echo-server client:add myapp
image.png
获得一个
key
,保存。
- 通过api获取服务器状态等
HTTP API
The HTTP API exposes endpoints that allow you to gather information about your running server and channels.
Status Get total number of clients, uptime of the server, and memory usage.
GET /apps/:APP_ID/status?auth_key=你的key //注意将APP_ID换成myapp
Channels List of all channels.
GET /apps/:APP_ID/channels
Channel Get information about a particular channel.
GET /apps/:APP_ID/channels/:CHANNEL_NAME
Channel Users List of users on a channel.
GET /apps/:APP_ID/channels/:CHANNEL_NAME/users
网友评论