Documentation
¶
Index ¶
- Variables
- type EventPayload
- type Io
- func (s *Io) Close()
- func (s *Io) Emit(event string, agrs ...interface{}) error
- func (s *Io) Middleware(c *fiber.Ctx) error
- func (s *Io) Of(name string) *Namespace
- func (s *Io) OnAuthorization(fn func(params map[string]string) bool)
- func (s *Io) OnConnection(fn connectionEventCallback)
- func (s *Io) Server(router fiber.Router)
- func (s *Io) To(name string) *Room
- type Namespace
- type Room
- type Socket
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorInvalidConnection = errors.New("invalid connection") ErrorUUIDDuplication = errors.New("UUID already exists") )
Functions ¶
This section is empty.
Types ¶
type EventPayload ¶
type Io ¶
type Io struct {
// contains filtered or unexported fields
}
func (*Io) OnConnection ¶
func (s *Io) OnConnection(fn connectionEventCallback)
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
func (*Namespace) OnConnection ¶
func (nps *Namespace) OnConnection(fn connectionEventCallback)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.