MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Solved http这个速度正常吗?

    HTTP API和第三方SDK
    2
    3
    264
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      HClO last edited by HClO

      >>> t=time.time();data=r.get("http://localhost:8080//peekLatestMessage?count=10").text;print(time.time()-t)
      2.0292623043060303
      

      获取消息一次要两秒,发消息也差不多,稍微再多点

      1 Reply Last reply Reply Quote 0
      • Topic has been marked as a question  H HClO 
      • RainChan
        RainChan 摸鱼 last edited by

        建议使用websocket上报消息

        H 1 Reply Last reply Reply Quote 0
        • H
          HClO @RainChan last edited by

          @rainchan 好的,我试试,谢谢你

          1 Reply Last reply Reply Quote 0
          • Topic has been marked as solved  H HClO 
          • 1 / 1
          • First post
            Last post
          Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact