mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-02 00:10:07 +02:00
API screen change websocket broadcast.
This commit is contained in:
parent
9343e85b8f
commit
b6d5df6d04
3 changed files with 24 additions and 9 deletions
17
internal/websocket/broadcast/screen.go
Normal file
17
internal/websocket/broadcast/screen.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package broadcast
|
||||
|
||||
import (
|
||||
"demodesk/neko/internal/types"
|
||||
"demodesk/neko/internal/types/event"
|
||||
"demodesk/neko/internal/types/message"
|
||||
)
|
||||
|
||||
func ScreenConfiguration(session types.SessionManager, id string, width int, height int, rate int) error {
|
||||
return session.Broadcast(message.ScreenResolution{
|
||||
Event: event.SCREEN_RESOLUTION,
|
||||
ID: id,
|
||||
Width: width,
|
||||
Height: height,
|
||||
Rate: rate,
|
||||
}, nil)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue