refactor: Rename signaling handler function for clarity

This commit is contained in:
Adam Shiervani 2025-04-08 15:28:54 +02:00 committed by Siyuan Miao
parent f17f15be57
commit fc44b686f3
1 changed files with 2 additions and 2 deletions

4
web.go
View File

@ -98,7 +98,7 @@ func setupRouter() *gin.Engine {
protected := r.Group("/")
protected.Use(protectedMiddleware())
{
protected.GET("/webrtc/signaling", handLocalWebRTCSignal)
protected.GET("/webrtc/signaling", handleLocalWebRTCSignal)
protected.POST("/webrtc/session", handleWebRTCSession)
protected.POST("/cloud/register", handleCloudRegister)
protected.GET("/cloud/state", handleCloudState)
@ -126,7 +126,7 @@ func setupRouter() *gin.Engine {
// TODO: support multiple sessions?
var currentSession *Session
func handLocalWebRTCSignal(c *gin.Context) {
func handleLocalWebRTCSignal(c *gin.Context) {
cloudLogger.Infof("new websocket connection established")
// Create WebSocket options with InsecureSkipVerify to bypass origin check
wsOptions := &websocket.AcceptOptions{