generalized event handler

This commit is contained in:
Darien Raymond committed 2017-11-28 23:41:20 +01:00
1 parent 973ce07db9
commit fd8db49dc9
16 files changed
+80 -32

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@ func New(ctx context.Context, config *Config) (*Handler, error) {
sessionHistory: encoding.NewSessionHistory(ctx),
}
space.OnInitialize(func() error {
space.On(app.SpaceInitializing, func(interface{}) error {
handler.inboundHandlerManager = proxyman.InboundHandlerManagerFromSpace(space)
if handler.inboundHandlerManager == nil {
return newError("InboundHandlerManager is not found is space.")