Versions in this module Expand all Collapse all v1 v1.2.1 Oct 9, 2019 Changes in this version + type Conn interface + Close func() error + Context func() interface{} + Emit func(ctx context.Context, event string, body []byte) error + ID func() string + RemoteAddr func() string + RemoteHeader func() http.Header + SetContext func(v interface{}) + URL func() *url.URL + type ConnectionIDGenerator interface + NewID func() string + type RoomStore interface + Add func(Conn) + Clear func(rooms ...string) + Get func(connId string) (Conn, bool) + Join func(conn Conn, rooms ...string) + Leave func(conn Conn, rooms ...string) + LeaveByConnId func(id string, rooms ...string) + Len func(room string) int + Remove func(Conn) + Rooms func() []string + ToBroadcast func(rooms ...string) []Conn + func NewRoomStore() RoomStore + type Server interface + BroadcastToAll func(event string, data []byte) error + BroadcastToRoom func(room string, event string, data []byte) error + Close func() + On func(event string, f func(conn Conn, data []byte)) Server + OnConnect func(f func(Conn)) Server + OnDefault func(f func(event string, conn Conn, data []byte)) Server + OnDisconnect func(f func(Conn, error)) Server + OnError func(f func(Conn, error)) Server + Rooms func() RoomStore + ServeHttp func(w http.ResponseWriter, r *http.Request) + Unsubscribe func(event string) Server + func NewServer(ctx context.Context, config ServerConfig) Server + type ServerConfig struct + ConnectionReadLimit int64 + InsecureSkipVerify bool + RequestHandler func(*http.Request) error Incompatible versions in this module v2.0.2+incompatible Dec 24, 2019 v2.0.1+incompatible Dec 24, 2019 v2.0.0+incompatible Oct 29, 2019 Other modules containing this package github.com/txix-open/isp-etp-go/v2