This commit is contained in:
Mickael Remond 2019-06-18 12:34:17 +02:00 committed by Mickaël Rémond
parent 2c7b03fcea
commit 7aef8357ed

View File

@ -37,8 +37,6 @@ type ComponentOptions struct {
// ================================= // =================================
// Communication with developer client / StreamManager // Communication with developer client / StreamManager
// Packet channel
RecvChannel chan Packet
// Track and broadcast connection state // Track and broadcast connection state
EventManager EventManager
} }
@ -60,8 +58,6 @@ type Component struct {
func NewComponent(opts ComponentOptions, r *Router) (*Component, error) { func NewComponent(opts ComponentOptions, r *Router) (*Component, error) {
c := Component{ComponentOptions: opts, router: r} c := Component{ComponentOptions: opts, router: r}
// Create a default channel that developers can override
c.RecvChannel = make(chan Packet)
return &c, nil return &c, nil
} }