Documentation ¶
Index ¶
Constants ¶
View Source
const ( FcOpen = 0 FcClose = 1 FcPing = 2 FcPong = 3 FcMessage = 4 FcUpgrade = 5 FcNoop = 6 )
View Source
const ( ScEmpty = -1 ScConnect = 0 ScDisconnect = 1 ScEvent = 2 ScAck = 3 ScError = 4 ScBinaryEvent = 5 ScBinaryAck = 6 )
View Source
const (
EventMessage = "message"
)
Variables ¶
This section is empty.
Functions ¶
func DecodeNodeSocketIO ¶
Types ¶
type CompatMsg ¶
type CompatMsg struct { Event string `json:"event,omitempty"` Data interface{} `json:"data,omitempty"` }
func (CompatMsg) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (CompatMsg) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*CompatMsg) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CompatMsg) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type CompatMsgDataItem ¶
type CompatMsgDataItem struct { Type string `json:"type,omitempty"` Data interface{} `json:"data,omitempty"` }
func (CompatMsgDataItem) JSON ¶
func (c CompatMsgDataItem) JSON() []byte
func (CompatMsgDataItem) MarshalEasyJSON ¶
func (v CompatMsgDataItem) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CompatMsgDataItem) MarshalJSON ¶
func (v CompatMsgDataItem) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CompatMsgDataItem) UnmarshalEasyJSON ¶
func (v *CompatMsgDataItem) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CompatMsgDataItem) UnmarshalJSON ¶
func (v *CompatMsgDataItem) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.