web_app.py 文件源码

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

项目:react-tornado-graphql-example 作者: yatsu 项目源码 文件源码
def response_handler(self, msg):
        ident, resp_bytes = msg
        resp = json_decode(to_unicode(resp_bytes))
        app_log.debug('resp: %s', resp)

        subid = self.subscriptions.get('commandExecute')
        if subid is not None:
            self.write_message(json_encode({
                'type': 'subscription_data',
                'id': subid,
                'payload': {
                    'data': resp
                }
            }))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号