Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type EventHandlers ¶ added in v0.5.5
type EventHandlers struct {
RegisterHandler, UnregisterHandler func(s *Socket)
}
type NamespaceEventHandlerMap ¶ added in v0.5.5
type NamespaceEventHandlerMap map[string]*EventHandlers
type Registry ¶
type Registry struct {
Register chan *Socket
Unregister chan *Socket
Sockets *sync.Map
ServiceGoroutine goroutine.IGoroutine
}
func NewSocketRegistry ¶ added in v0.8.78
func NewSocketRegistry(eventHandlersMap NamespaceEventHandlerMap, serviceGoroutine goroutine.IGoroutine) *Registry
type Socket ¶
type Socket struct {
Ctx context.Context
ErrorLogger errorlogger.ErrorLogger
Connection *Connection
ID string
Namespace string
}
Click to show internal directories.
Click to hide internal directories.