Update the chat example to publish messages on the websocket connection
未关闭
docs
- 主要语言
- Go
- 星标
- 5.5k
- 派生
- 372
- PR 合并指标
- 30 天内没有已合并 PR
描述
I think the chat example would be a lot more valuable if the messages were published via the websocket connection instead of as separate HTTP request. I'm trying to migrate from gorilla/websockets but having a hard time figuring out how to both read from and write to a client from different threads. If not publishing the messages themselves, maybe a "typing" indicator when a user is typing in the input? Anything that demonstrates concurrent full duplex communication over websockets really.
贡献指南
这个仓库没有索引到贡献指南
调研方向
先定位并运行聊天示例,然后检查它当前如何通过 HTTP 发送消息。该 issue 提议将消息发布移到 WebSocket 连接上,或添加输入指示器,以演示并发的 full-duplex 通信。在定义 done 之前,先确认接受哪种行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- go
- 领域
- backend
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100