Documentation
¶
Index ¶
- type IWrapper
- type Wrapper
- func (s *Wrapper) HandlerFunc(context echo.Context) error
- func (s *Wrapper) OnConnect(nsp string, f func(echo.Context, socketio.Conn) error)
- func (s *Wrapper) OnDisconnect(nsp string, f func(echo.Context, socketio.Conn, string))
- func (s *Wrapper) OnError(nsp string, f func(echo.Context, error))
- func (s *Wrapper) OnEvent(nsp, event string, f func(echo.Context, socketio.Conn, string))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IWrapper ¶
type IWrapper interface { OnConnect(nsp string, f func(echo.Context, socketio.Conn) error) OnDisconnect(nsp string, f func(echo.Context, socketio.Conn, string)) OnError(nsp string, f func(echo.Context, error)) OnEvent(nsp, event string, f func(echo.Context, socketio.Conn, string)) HandlerFunc(context echo.Context) error }
Socket.io wrapper interface
type Wrapper ¶
func NewWrapper ¶
Create wrapper and Socket.io server
func NewWrapperWithServer ¶
Create wrapper with exists Socket.io server
func (*Wrapper) HandlerFunc ¶
Handler function
func (*Wrapper) OnDisconnect ¶
On Socket.io client disconnect
Click to show internal directories.
Click to hide internal directories.