Documentation ¶
Index ¶
Constants ¶
View Source
const ( BindOp = "bind" StdinOp = "stdin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Connection Connection WebSockets bool Address string ReadBufSize int WriteBufSize int Reconnected chan struct{} }
func (*Client) ReadMessage ¶
func (*Client) WriteMessage ¶
type Connection ¶
type Data ¶
type Data struct { Op string `json:"Op"` SessionID string `json:"SessionID,omitempty"` Data string `json:"Data,omitempty"` }
func GetBindData ¶
func (*Data) GetWriteMessage ¶
type WebSocket ¶
type WebSocket struct { sync.Mutex Address string TransportAddress string ServerID string SessionID string Connection *websocket.Conn Inbound chan []byte Reconnected chan struct{} Stop chan struct{} }
func NewWebSocket ¶
type XHR ¶
type XHR struct { Address string TransportAddress string ServerID string SessionID string Inbound chan []byte Done chan bool // contains filtered or unexported fields }
func (*XHR) GetSessionState ¶
func (x *XHR) GetSessionState() sockjs.SessionState
func (*XHR) StartReading ¶
func (x *XHR) StartReading()
Click to show internal directories.
Click to hide internal directories.