Use something smarter than `Show/Read` for the websockets protocol
- 主要语言
- Haskell
- 星标
- 1.3k
- 派生
- 201
- PR 合并指标
- 30 天内没有已合并 PR
描述
I just tried to use `Data.Serialize` with generic deriving, but am stuck. While `Network.WebSockets` (the server side) has no problems sending binary data (as a `ByteString`) over the wire, the corresponding support in ghcjs, at , seems to be shaky. I might get a `Blob` out, but I do not see how to get a `ByteString` out.
I think I was at this point before, so I record this here.
Either I need to figure out how to work with `ByteString` in GHCJS, or use a different serialization library which targets `Data.Text`.
贡献指南
调研方向
首先阅读 Network.WebSockets 的服务器端二进制数据路径和 ghcjs-base's JavaScript/Web/MessageEvent.hs,然后比较 issue 中提到的 ByteString 和 Data.Text 选项。当 WebSocket 协议不再依赖 Show/Read,且所选表示形式能够在服务器和 GHCJS 客户端上正常工作时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- haskell
- 领域
- networking
- Issue 类型
- 重构
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100