Documentation ¶
Index ¶
- type WSCtx
- func (ws *WSCtx) Read(p []byte) (n int, err error)
- func (ws *WSCtx) Receive(f func(messageType int, p []byte))
- func (ws *WSCtx) Send(o any)
- func (ws *WSCtx) SetSerialize(serialize def.Serialize)
- func (ws *WSCtx) SetWsLabel(label string) *WSCtx
- func (ws *WSCtx) Write(p []byte) (n int, err error)
- func (ws *WSCtx) WriteJSON(o any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WSCtx ¶
type WSCtx struct {
// contains filtered or unexported fields
}
func (*WSCtx) SetSerialize ¶
func (*WSCtx) SetWsLabel ¶
Click to show internal directories.
Click to hide internal directories.