mirror of https://github.com/jetkvm/kvm.git
refactor: Rename signaling handler function for clarity
This commit is contained in:
parent
f17f15be57
commit
fc44b686f3
4
web.go
4
web.go
|
@ -98,7 +98,7 @@ func setupRouter() *gin.Engine {
|
||||||
protected := r.Group("/")
|
protected := r.Group("/")
|
||||||
protected.Use(protectedMiddleware())
|
protected.Use(protectedMiddleware())
|
||||||
{
|
{
|
||||||
protected.GET("/webrtc/signaling", handLocalWebRTCSignal)
|
protected.GET("/webrtc/signaling", handleLocalWebRTCSignal)
|
||||||
protected.POST("/webrtc/session", handleWebRTCSession)
|
protected.POST("/webrtc/session", handleWebRTCSession)
|
||||||
protected.POST("/cloud/register", handleCloudRegister)
|
protected.POST("/cloud/register", handleCloudRegister)
|
||||||
protected.GET("/cloud/state", handleCloudState)
|
protected.GET("/cloud/state", handleCloudState)
|
||||||
|
@ -126,7 +126,7 @@ func setupRouter() *gin.Engine {
|
||||||
// TODO: support multiple sessions?
|
// TODO: support multiple sessions?
|
||||||
var currentSession *Session
|
var currentSession *Session
|
||||||
|
|
||||||
func handLocalWebRTCSignal(c *gin.Context) {
|
func handleLocalWebRTCSignal(c *gin.Context) {
|
||||||
cloudLogger.Infof("new websocket connection established")
|
cloudLogger.Infof("new websocket connection established")
|
||||||
// Create WebSocket options with InsecureSkipVerify to bypass origin check
|
// Create WebSocket options with InsecureSkipVerify to bypass origin check
|
||||||
wsOptions := &websocket.AcceptOptions{
|
wsOptions := &websocket.AcceptOptions{
|
||||||
|
|
Loading…
Reference in New Issue