mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-02 02:42:47 +02:00
progress on server refactor
This commit is contained in:
parent
81abb88317
commit
78af798d68
14 changed files with 392 additions and 131 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue