예제 #1
0
 /**
  * @param WampRequest  $request
  * @param array|string $data
  * @param string       $provider
  */
 public function onPush(WampRequest $request, $data, $provider)
 {
     $topic = $this->topicManager->getTopic($request->getMatched());
     $this->dispatch(self::PUSH, null, $topic, $request, $data, null, null, $provider);
 }
예제 #2
0
 /**
  * @param WampRequest $request
  * @param string      $data
  * @param string      $provider
  */
 public function onPush(WampRequest $request, $data, $provider)
 {
     $this->logger->info(sprintf('Pusher %s has pushed', $provider), ['provider' => $provider, 'topic' => $request->getMatched()]);
     $this->topicDispatcher->onPush($request, $data, $provider);
 }