first commit

This commit is contained in:
hayato5246
2026-03-31 19:32:59 +09:00
commit d10b794c9f
78 changed files with 1671595 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package handlers
import (
"net/http"
ws "stocksearch/websocket"
)
// WSHandler WebSocket 핸들러
type WSHandler struct {
hub *ws.Hub
}
// NewWSHandler 핸들러 초기화
func NewWSHandler(hub *ws.Hub) *WSHandler {
return &WSHandler{hub: hub}
}
// ServeWS GET /ws - WebSocket 연결 처리
func (h *WSHandler) ServeWS(w http.ResponseWriter, r *http.Request) {
h.hub.ServeWS(w, r)
}