func NewWsMessageReceiver( interceptor *wsInterceptor, redisClient *redis.Client, wsClient *gowamp.Client, ) WsMessageReceiver { broadcaster := common.NewBroadcaster() clientMessageProcessor := messaging.NewMessageProcessor() p := WsMessageReceiver{interceptor, redisClient, clientMessageProcessor, wsClient, broadcaster} return p }
func NewRpcMessageReceiver(wsClient *gowamp.Client, wsProcessor WsMessageReceiver) RpcMessageReceiver { return RpcMessageReceiver{wsClient, wsProcessor, messaging.NewMessageProcessor()} }