mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-24 10:37:11 +00:00
15 lines
484 B
Go
15 lines
484 B
Go
package worker
|
|
|
|
import "github.com/giongto35/cloud-game/webrtc"
|
|
|
|
// Session represents a session connected from the browser to the current server
|
|
// It requires one connection to browser and one connection to the overlord
|
|
// connection to browser is 1-1. connection to overlord is n - 1
|
|
// Peerconnection can be from other server to ensure better latency
|
|
type Session struct {
|
|
ID string
|
|
peerconnection *webrtc.WebRTC
|
|
|
|
// Should I make direct reference
|
|
RoomID string
|
|
}
|