zim icon indicating copy to clipboard operation
zim copied to clipboard

Support typed websocket

Open jxnu-liguobin opened this issue 2 years ago • 0 comments

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 avatar Jan 28 '22 12:01 jxnu-liguobin