func New() *Events {
	return &Events{
		events: make([]*jsonmessage.JSONMessage, 0, eventsLimit),
		pub:    pubsub.NewPublisher(100*time.Millisecond, 1024),
	}
}
// New returns new *Events instance
New returns new *Events instance
// New returns new * Events instance
func New() *Events {
	return &Events{
		events: make([]*jsonmessage.JSONMessage, 0, eventsLimit),
		pub:    pubsub.NewPublisher(100*time.Millisecond, 1024),
	}
}
func New ( ) * Events { return & Events { events : make ( [ ] * jsonmessage . JSONMessage , 0 , eventsLimit ) , pub : pubsub . NewPublisher ( 100 * time . Millisecond , 1024 ) , } }
New returns new *Events instance
New returns new * Events instance