Documentation ¶
Index ¶
- Variables
- func BackendWSdataSession(conn *websocket.Conn, backendChannel chan string)
- func FrontendWSdataSession(conn *websocket.Conn, clientChannel chan string, backendChannel chan string)
- func InitDataSession(muxServer *http.ServeMux, regData RegData) (dataConn *websocket.Conn)
- func RegisterAsTransportMgr(regData *RegData, protocol string)
- type ClientHandler
- type ClientServer
- type HttpChannel
- type HttpServer
- type HttpWSsession
- type RegData
- type TransportHubFrontendWSSession
- type WsChannel
- type WsServer
- type WsWSsession
Constants ¶
This section is empty.
Variables ¶
View Source
var AppClientChan = []chan string{ make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), make(chan string), }
the number of channel array elements sets the limit for max number of parallel WS app clients
View Source
var HostIP string
View Source
var MuxServer = []*http.ServeMux{ http.NewServeMux(), http.NewServeMux(), }
View Source
var TransportErrorMessage string
View Source
var Upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
}
Functions ¶
func BackendWSdataSession ¶
func FrontendWSdataSession ¶
func InitDataSession ¶
func RegisterAsTransportMgr ¶
* * registerAsTransportMgr: * Registers with servercore as WebSocket protocol manager, and stores response in regData *
Types ¶
type ClientHandler ¶
type ClientHandler interface {
// contains filtered or unexported methods
}
********************************************************************* Client response handlers *********************
type ClientServer ¶
type HttpChannel ¶
type HttpChannel struct { }
type HttpServer ¶
type HttpServer struct { }
func (HttpServer) InitClientServer ¶
func (server HttpServer) InitClientServer(muxServer *http.ServeMux)
type HttpWSsession ¶
type HttpWSsession struct { }
func (HttpWSsession) TransportHubFrontendWSsession ¶
func (httpCoreSocketSession HttpWSsession) TransportHubFrontendWSsession(dataConn *websocket.Conn, appClientChannel []chan string)
type TransportHubFrontendWSSession ¶
type TransportHubFrontendWSSession interface {
// contains filtered or unexported methods
}
**********Server Core Communications *******************************************************************************
type WsWSsession ¶
type WsWSsession struct {
ClientBackendChannel []chan string
}
func (WsWSsession) TransportHubFrontendWSsession ¶
func (wsCoreSocketSession WsWSsession) TransportHubFrontendWSsession(dataConn *websocket.Conn, appClientChannel []chan string)
Click to show internal directories.
Click to hide internal directories.