Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastBinary ¶
Types ¶
type Filter ¶
type Filter struct { Keys map[string]map[interface{}]struct{} // contains filtered or unexported fields }
func NewBlacklistFilter ¶
func NewWhitelistFilter ¶
type Options ¶
type Options interface { SetCallTimeout(t time.Duration) SetRelativePath(relativePath string) SetKeys(keys ...string) SetAuth(auth func(c *gin.Context)) HandleConnect(fn func(*melody.Session)) HandleDisconnect(fn func(*melody.Session)) HandlePong(fn func(*melody.Session)) HandleMessage(fn func(*melody.Session, []byte)) HandleMessageBinary(fn func(*melody.Session, []byte)) HandleSentMessage(fn func(*melody.Session, []byte)) HandleSentMessageBinary(fn func(*melody.Session, []byte)) HandleError(fn func(*melody.Session, error)) HandleClose(fn func(*melody.Session, int, string) error) }
Click to show internal directories.
Click to hide internal directories.