RegisterHandlers 시그니쳐 변경

This commit is contained in:
2024-07-29 10:15:04 +09:00
parent 013c89e58d
commit ae98abe61d
3 changed files with 13 additions and 5 deletions

View File

@ -266,7 +266,7 @@ func (ws *WebsocketHandler) Cleanup() {
ws.connWaitGroup.Wait()
}
func (ws *WebsocketHandler) RegisterHandlers(serveMux *http.ServeMux, prefix string) error {
func (ws *WebsocketHandler) RegisterHandlers(serveMux gocommon.ServerMuxInterface, prefix string) error {
url := gocommon.MakeHttpHandlerPattern(prefix, "ws")
if *noAuthFlag {
serveMux.HandleFunc(url, ws.upgrade_nosession)