mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-04 01:09:27 +02:00
+ GetProfile & GetState members.
This commit is contained in:
parent
209971cb8a
commit
7fb40c0384
5 changed files with 57 additions and 89 deletions
|
@ -31,6 +31,7 @@ type MembersDatabase interface {
|
|||
type Session interface {
|
||||
ID() string
|
||||
|
||||
// profile
|
||||
VerifySecret(secret string) bool
|
||||
Name() string
|
||||
IsAdmin() bool
|
||||
|
@ -39,16 +40,21 @@ type Session interface {
|
|||
CanWatch() bool
|
||||
CanHost() bool
|
||||
CanAccessClipboard() bool
|
||||
GetProfile() MemberProfile
|
||||
|
||||
// state
|
||||
IsHost() bool
|
||||
IsConnected() bool
|
||||
IsWatching() bool
|
||||
Disconnect(reason string) error
|
||||
GetState() MemberState
|
||||
|
||||
// websocket
|
||||
SetWebSocketPeer(websocket_peer WebSocketPeer)
|
||||
SetWebSocketConnected(connected bool)
|
||||
Send(v interface{}) error
|
||||
Disconnect(reason string) error
|
||||
|
||||
// webrtc
|
||||
SetWebRTCPeer(webrtc_peer WebRTCPeer)
|
||||
SetWebRTCConnected(connected bool)
|
||||
SignalAnswer(sdp string) error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue