Websockets
$ go get github.com/kataras/neffos@latest// GetContext returns the Iris Context from a websocket connection.
func GetContext(c *neffos.Conn) Context// IDGenerator is an iris-specific IDGenerator for new connections.
type IDGenerator func(Context) string
// Handler returns an Iris handler to be served in a route of an Iris application.
// Accepts the neffos websocket server as its first input argument
// and optionally an Iris-specific `IDGenerator` as its second one.
func Handler(s *neffos.Server, IDGenerator ...IDGenerator) HandlerLast updated
Was this helpful?