Skip to content

Commit

Permalink
[update] Register user and handle
Browse files Browse the repository at this point in the history
  • Loading branch information
KimJeongChul committed Oct 11, 2020
1 parent 6ccfc6d commit cc8e7e6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions internal/websocket/websockethandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,21 @@ func (wsh *WebSocketHandler) handleMessage(ws *WebSocket) {
continue
}

if false {
log.Println(userID, handleID, pc, room)
isExistUser := room.Exist(userID)
if !isExistUser {
room.Register(userID)
room.RegisterHandle(userID, handleID, channel)
} else {
room.RegisterHandle(userID, handleID, channel)
}

//Set candidate
case msg.Method == "candidate":
// TODO Set Candidate

//Request Subscribe
case msg.Method == "requestSubscribe":
// TODO Request Subscribe
}
}
}

0 comments on commit cc8e7e6

Please sign in to comment.