mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-30 01:17:13 +02:00
WebRTC refactor -> session dependency removal.
This commit is contained in:
parent
dadac4f145
commit
b1b5a70c64
6 changed files with 25 additions and 28 deletions
|
@ -6,6 +6,8 @@ import (
|
|||
"strconv"
|
||||
|
||||
"github.com/pion/webrtc/v2"
|
||||
|
||||
"demodesk/neko/internal/types"
|
||||
)
|
||||
|
||||
const OP_MOVE = 0x01
|
||||
|
@ -36,8 +38,8 @@ type PayloadKey struct {
|
|||
Key uint64
|
||||
}
|
||||
|
||||
func (manager *WebRTCManager) handle(id string, msg webrtc.DataChannelMessage) error {
|
||||
if !manager.sessions.IsHost(id) {
|
||||
func (manager *WebRTCManager) handle(session types.Session, msg webrtc.DataChannelMessage) error {
|
||||
if !session.IsHost() {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue