 ff07104316
			
		
	
	
		ff07104316
		
	
	
	
	
		
			
			Added files to test Ratchet against the AutobahnTestSuite Bumped version v0.2b Updated how to handle control frames to run the test suite
		
			
				
	
	
		
			22 lines
		
	
	
		
			531 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			531 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| namespace Ratchet\Tests;
 | |
| use Ratchet\MessageComponentInterface;
 | |
| use Ratchet\ConnectionInterface;
 | |
| 
 | |
| class AbFuzzyServer implements MessageComponentInterface {
 | |
|     public function onOpen(ConnectionInterface $conn) {
 | |
|     }
 | |
| 
 | |
|     public function onMessage(ConnectionInterface $from, $msg) {
 | |
|         $from->send($msg);
 | |
|     }
 | |
| 
 | |
|     public function onClose(ConnectionInterface $conn) {
 | |
|     }
 | |
| 
 | |
|     public function onError(ConnectionInterface $conn, \Exception $e) {
 | |
|         echo $e->getMessage() . "\n";
 | |
| 
 | |
|         $conn->close();
 | |
|     }
 | |
| } |