Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeConnectionRequest ¶ added in v2.6.0
Types ¶
type CoordinatorClient ¶
CoordinatorClient maintains connection to coordinator. We expect only one CoordinatorClient for each server.
func NewCoordinatorClient ¶
func NewCoordinatorClient(oc *websocket.Conn) *CoordinatorClient
NewCoordinatorClient returns a client connecting to coordinator for coordination between different server.
type Handler ¶
type Handler struct { service.RunnableService // contains filtered or unexported fields }
func NewHandler ¶
NewHandler returns a new server
func (*Handler) GetCoordinatorClient ¶
func (h *Handler) GetCoordinatorClient() *CoordinatorClient
type Session ¶
type Session struct { ID string // Should I make direct reference RoomID string // contains filtered or unexported fields }
Session represents a session connected from the browser to the current server It requires one connection to browser and one connection to the coordinator connection to browser is 1-1. connection to coordinator is n - 1 Peerconnection can be from other server to ensure better latency
Source Files ¶
Click to show internal directories.
Click to hide internal directories.