Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support typed websocket #81

Open
jxnu-liguobin opened this issue Jan 28, 2022 · 0 comments
Open

Support typed websocket #81

jxnu-liguobin opened this issue Jan 28, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jxnu-liguobin
Copy link
Member

jxnu-liguobin commented Jan 28, 2022

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
类型化ws指的是将ws协议的传输媒介由目前的text改成 frame+case class json,涉及到解码器和akka ws相关的修改:

  1. WsApi.scala
  2. WsEndpoint.scala
  3. wsService.scala#openConnection
  4. 可能涉及到前端的修改:如websocket.js
  5. 支持完typed,WsMessageForwardBehavior就可以去掉转发消息TransmitMessageProxy,不再需要手动decode。直接使用case class的即可。

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@jxnu-liguobin jxnu-liguobin added the enhancement New feature or request label Jan 28, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant