Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommSession ¶
type CommSession struct { ID string Connections map[string]*ConnectionInfo Commands chan string // contains filtered or unexported fields }
CommSession is all of the information about a Session
func NewCommSession ¶
func NewCommSession(id string) *CommSession
NewCommSession create a CommSession object that encapsulates all of the information that is unique to and required for a Session.
func (CommSession) AddConnection ¶
func (session CommSession) AddConnection(id string, name string, w http.ResponseWriter, r *http.Request)
AddConnection adds a participant information to the Session's CommSession once they are ready to switch to WebSockets and begin communication.
Click to show internal directories.
Click to hide internal directories.