mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-05 12:22:52 +02:00
server -> client signaling
This commit is contained in:
parent
1f8b4d44c7
commit
d5bff32302
17 changed files with 181 additions and 286 deletions
|
@ -7,10 +7,8 @@ import (
|
|||
)
|
||||
|
||||
func (h *MessageHandler) SessionCreated(id string, session types.Session) error {
|
||||
if err := session.Send(message.Identity{
|
||||
Event: event.IDENTITY_PROVIDE,
|
||||
ID: id,
|
||||
}); err != nil {
|
||||
// send sdp and id over to client
|
||||
if err := h.signalProvide(id, session); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -20,7 +18,7 @@ func (h *MessageHandler) SessionCreated(id string, session types.Session) error
|
|||
}
|
||||
|
||||
if session.Admin() {
|
||||
// send screen configurations
|
||||
// send screen configurations if admin
|
||||
if err := h.screenConfigurations(id, session); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue