WAMP onCall
Functioning onCall on WAMP Fixed bug on Event - fluent interface (had broken factory)
This commit is contained in:
		
							parent
							
								
									5e82fc76c6
								
							
						
					
					
						commit
						b2e4578e19
					
				| @ -64,7 +64,9 @@ class App implements WebSocketAppInterface { | ||||
|             break; | ||||
| 
 | ||||
|             case 2: | ||||
|                 return $this->_app->onCall($from, $json[1], $json[2]); | ||||
|                 array_shift($json); | ||||
|                 array_unshift($json, $from); | ||||
|                 return call_user_func_array(array($this->_app, 'onCall'), $json); | ||||
|             break; | ||||
| 
 | ||||
|             case 5: | ||||
|  | ||||
| @ -12,6 +12,6 @@ class Event extends SendMessage { | ||||
|      * @param string | ||||
|      */ | ||||
|     public function setEvent($uri, $msg) { | ||||
|         $this->setMessage(json_encode(array(8, $uri, (string)$msg))); | ||||
|         return $this->setMessage(json_encode(array(8, $uri, (string)$msg))); | ||||
|     } | ||||
| } | ||||
| @ -35,7 +35,7 @@ interface ServerInterface { | ||||
|      * @param ... | ||||
|      * @return Ratchet\Resource\Command\CommandInterface|null | ||||
|      */ | ||||
|     function onCall(Connection $conn, $callID, $uri); | ||||
|     function onCall(); | ||||
| 
 | ||||
|     /** | ||||
|      * A request to subscribe to a URI has been made | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Chris Boden
						Chris Boden