mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
progress on server refactor
This commit is contained in:
@ -8,12 +8,13 @@ import (
|
||||
)
|
||||
|
||||
type Session struct {
|
||||
ID string
|
||||
Name string
|
||||
Admin bool
|
||||
socket *websocket.Conn
|
||||
peer *webrtc.PeerConnection
|
||||
mu sync.Mutex
|
||||
ID string `json:"id"`
|
||||
Name string `json:"username"`
|
||||
Admin bool `json:"admin"`
|
||||
connected bool
|
||||
socket *websocket.Conn
|
||||
peer *webrtc.PeerConnection
|
||||
mu sync.Mutex
|
||||
}
|
||||
|
||||
// TODO: write to peer data channel
|
||||
|
Reference in New Issue
Block a user