[engine] Go WebSocket sunucu iskeleti + bağlantı yaşam döngüsü #21

Closed
opened 2026-06-16 23:54:01 +03:00 by saqut · 2 comments
Owner

Go ile WS sunucusu (ör. coder/websocket veya gorilla). Her bağlantı kendi goroutine'inde; bağlan/kapat/heartbeat/reconnect yaşam döngüsü. SDK endpoint sözleşmesi (wss://.../ ) aynı kalır.

Go ile WS sunucusu (ör. coder/websocket veya gorilla). Her bağlantı kendi goroutine'inde; bağlan/kapat/heartbeat/reconnect yaşam döngüsü. SDK endpoint sözleşmesi (wss://.../ ) aynı kalır.
saqut added this to the 0.1.0 milestone 2026-06-16 23:54:01 +03:00
saqut added the
engine
go
labels 2026-06-16 23:54:01 +03:00
Author
Owner

Uygulandı (branch: go-rewrite): internal/ws/server.go — WS upgrade, bağlantı yaşam döngüsü (connect/disconnect), saQut ping/pong heartbeat, bağlantı-başına tek-yazıcı writePump. Endpoint sözleşmesi (herhangi path'te WS upgrade) korundu. go test -race yeşil. (0.1.0 milestone'u #22 insan-onayına bağlı olduğundan açık bırakıldı.)

**Uygulandı** (branch: `go-rewrite`): `internal/ws/server.go` — WS upgrade, bağlantı yaşam döngüsü (connect/disconnect), `saQut` ping/pong heartbeat, bağlantı-başına tek-yazıcı `writePump`. Endpoint sözleşmesi (herhangi path'te WS upgrade) korundu. `go test -race` yeşil. (0.1.0 milestone'u #22 insan-onayına bağlı olduğundan açık bırakıldı.)
Author
Owner

Tamamlandı (go-rewrite). internal/ws (server.go, client.go, hub.go, room.go, conn.go): gorilla/websocket upgrade endpoint, bağlantı yaşam döngüsü (Connect→writePump+pingLoop→readLoop→Disconnect), bağlantı başına tek-yazıcı goroutine, saQut heartbeat (ping/pong), graceful close. Test: ws_test.go + httpserver/contract_test.go (gerçek WS yaşam döngüsü). go test -race yeşil.

Tamamlandı (go-rewrite). `internal/ws` (server.go, client.go, hub.go, room.go, conn.go): gorilla/websocket upgrade endpoint, bağlantı yaşam döngüsü (Connect→writePump+pingLoop→readLoop→Disconnect), bağlantı başına tek-yazıcı goroutine, saQut heartbeat (ping/pong), graceful close. Test: ws_test.go + httpserver/contract_test.go (gerçek WS yaşam döngüsü). `go test -race` yeşil.
saqut closed this issue 2026-06-17 08:17:22 +03:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: saqut/MWSE#21
No description provided.