Skip to content

Support typed websocket  #81

Description

@jxnu-liguobin

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions