server.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:zeus 作者: getsentry 项目源码 文件源码
def ping(loop, resp, client_guid):
    # periodically send ping to the browser. Any message that
    # starts with ":" colon ignored by a browser and could be used
    # as ping message.
    while True:
        await asyncio.sleep(15, loop=loop)
        current_app.logger.debug('pubsub.ping guid=%s', client_guid)
        resp.write(b': ping\r\n\r\n')


# @log_errors
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号