Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function getSubProtocols()
 {
     return $this->wampProtocol->getSubProtocols();
 }
 public function testWampOnMessageApp()
 {
     $app = $this->getMock('\\Ratchet\\Wamp\\WampServerInterface');
     $wamp = new ServerProtocol($app);
     $this->assertContains('wamp', $wamp->getSubProtocols());
 }