美文网首页
laravel echo server API使用

laravel echo server API使用

作者: IT宝哥哥 | 来源:发表于2019-03-13 15:48 被阅读0次

    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
    

    相关文章

      网友评论

          本文标题:laravel echo server API使用

          本文链接:https://www.haomeiwen.com/subject/puhtmqtx.html