laravel echo server API使用

2019-03-13  本文已影响0人  IT宝哥哥

API使用:

  1. 在启动laraver-echo-server前执行以下命令:
laravel-echo-server client:add myapp
image.png
获得一个key,保存。
  1. 通过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
上一篇下一篇

猜你喜欢

热点阅读