Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
25 | public function createConnection($socket) |
||
26 | { |
||
27 | $conn = new Connection($socket, $this->loop); |
||
28 | $conn->recipientLimit = $this->recipientLimit; |
||
29 | $conn->bannerDelay = $this->bannerDelay; |
||
30 | // We let messages "bubble up" from the connection to the server. |
||
31 | $conn->on('message', function() { |
||
32 | $this->emit('message', func_get_args()); |
||
33 | }); |
||
34 | return $conn; |
||
35 | } |
||
36 | } |
||
37 |