public function handleConnection(Stream $conn)
{
//$this->getManager()->debug("Raw socket opened");
$this->transport = new RawSocketTransport($conn, $this->loop, $this->client);
$this->transport->setSerializer(new JsonSerializer());
$this->transport->on('message', function ($transport, $msg) {
$this->client->onMessage($transport, $msg);
});
$this->client->onOpen($this->transport);
}