Skip to content

Commit fc44b68

Browse files
adamshiervaniym
authored andcommitted
refactor: Rename signaling handler function for clarity
1 parent f17f15b commit fc44b68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func setupRouter() *gin.Engine {
9898
protected := r.Group("/")
9999
protected.Use(protectedMiddleware())
100100
{
101-
protected.GET("/webrtc/signaling", handLocalWebRTCSignal)
101+
protected.GET("/webrtc/signaling", handleLocalWebRTCSignal)
102102
protected.POST("/webrtc/session", handleWebRTCSession)
103103
protected.POST("/cloud/register", handleCloudRegister)
104104
protected.GET("/cloud/state", handleCloudState)
@@ -126,7 +126,7 @@ func setupRouter() *gin.Engine {
126126
// TODO: support multiple sessions?
127127
var currentSession *Session
128128

129-
func handLocalWebRTCSignal(c *gin.Context) {
129+
func handleLocalWebRTCSignal(c *gin.Context) {
130130
cloudLogger.Infof("new websocket connection established")
131131
// Create WebSocket options with InsecureSkipVerify to bypass origin check
132132
wsOptions := &websocket.AcceptOptions{

0 commit comments

Comments
 (0)