mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
18 lines
411 B
Go
18 lines
411 B
Go
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)
|
|
}
|