Documentation
¶
Index ¶
Constants ¶
View Source
const (
SubescriptionRequest client.RequestType = "WRITE:__subscribe__"
)
Variables ¶
This section is empty.
Functions ¶
func MsgUnpackWsPayload ¶ added in v1.4.0
Types ¶
type WsPayload ¶ added in v1.4.0
type WsPayload struct {
Id string `json:"id"`
RequestType client.RequestType `json:"rTy"`
Params map[string]interface{} `json:"params"`
ClientPayload entities.ClientPayload `json:"pl"`
}
type WsService ¶
type WsService struct {
Ctx *context.Context
Cfg *configs.MainConfiguration
// ClientHandshakeChannel *chan *entities.ClientHandshake
// ClientSubscriptionChannel *chan *entities.ClientWsSubscription
RequestProcess *client.ClientRequestProcessor
}
func NewWsService ¶
func (*WsService) HandleConnection ¶ added in v1.4.0
func (p *WsService) HandleConnection(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.