Versions in this module Expand all Collapse all v1 v1.6.3 Jul 1, 2021 Changes in this version + type Broadcast interface + AllRooms func() []string + Clear func(room string) + ForEach func(room string, f EachFunc) + Join func(room string, connection Conn) + Leave func(room string, connection Conn) + LeaveAll func(connection Conn) + Len func(room string) int + Rooms func(connection Conn) []string + Send func(room, event string, args ...interface{}) + SendAll func(event string, args ...interface{}) + type Conn interface + ID func() string + LocalAddr func() net.Addr + RemoteAddr func() net.Addr + RemoteHeader func() http.Header + URL func() url.URL + type EachFunc func(Conn) + type Namespace interface + Context func() interface{} + Emit func(eventName string, v ...interface{}) + Join func(room string) + Leave func(room string) + LeaveAll func() + Namespace func() string + Rooms func() []string + SetContext func(ctx interface{}) + type RedisAdapterOptions struct + Addr string + Host string + Network string + Port string + Prefix string + type Server struct + func NewServer(opts *engineio.Options) *Server + func (s *Server) Adapter(opts *RedisAdapterOptions) (bool, error) + func (s *Server) BroadcastToNamespace(namespace string, event string, args ...interface{}) bool + func (s *Server) BroadcastToRoom(namespace string, room, event string, args ...interface{}) bool + func (s *Server) ClearRoom(namespace string, room string) bool + func (s *Server) Close() error + func (s *Server) Count() int + func (s *Server) ForEach(namespace string, room string, f EachFunc) bool + func (s *Server) JoinRoom(namespace string, room string, connection Conn) bool + func (s *Server) LeaveAllRooms(namespace string, connection Conn) bool + func (s *Server) LeaveRoom(namespace string, room string, connection Conn) bool + func (s *Server) OnConnect(namespace string, f func(Conn) error) + func (s *Server) OnDisconnect(namespace string, f func(Conn, string)) + func (s *Server) OnError(namespace string, f func(Conn, error)) + func (s *Server) OnEvent(namespace, event string, f interface{}) + func (s *Server) RoomLen(namespace string, room string) int + func (s *Server) Rooms(namespace string) []string + func (s *Server) Serve() error + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)