Conversation
Member
Author
|
大部分的冲突都是和我自己旧的ws的冲突和改名的冲突,我已经自己解决完了冲突 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
详细使用教程于markdown WebSocket 管理器快速上手中已大致说明
添加了一个ws管理器,用于统一管理正向和反向的ws链接
添加了一个注册器,默认监听/api/ws/{name},任何地方可以注册name,当访问对应地址后,通过api/webscoket.py 导航到对应的会话中,这样可以动态的使用这个/api/ws/{name}字段而不需要有事没事去改api
ws管理器可以主动发起ws链接(正向),也可以注册一个反向ws链接等待任何ws链接到端口,一般来讲,我们后端应该全部使用反向ws,让前端去连
send等普通方法见文档