public function testMessageReturnsAnObject()
 {
     $AppResponse = new BrainSocketAppResponse();
     $response = $AppResponse->message('some.event');
     $this->assertObjectHasAttribute('data', $response);
     return $this->assertObjectHasAttribute('event', $response);
 }
 /**
  * {@inheritdoc}
  */
 public function broadcast(array $channels, $event, array $payload = [])
 {
     foreach ($channels as $channel) {
         $this->brainsocket->message($this->getEventName($channel, $event), $payload);
     }
 }