コード例 #1
0
ファイル: WampServer.php プロジェクト: perfect-coin/chat
 /**
  * {@inheritdoc}
  */
 public function getSubProtocols()
 {
     return $this->wampProtocol->getSubProtocols();
 }
コード例 #2
0
 public function testWampOnMessageApp()
 {
     $app = $this->getMock('\\Ratchet\\Wamp\\WampServerInterface');
     $wamp = new ServerProtocol($app);
     $this->assertContains('wamp', $wamp->getSubProtocols());
 }