protected function createBinder()
{
$binder = $this;
$socket = new \Kraken\Ipc\Socket\SocketListener($this->endpoint, $this->loop);
$socket->on('connect', function (SocketListenerInterface $server, SocketInterface $client) use($binder) {
$client->on('data', function (SocketInterface $client, $data) use($binder) {
$binder->onData($client, $data);
});
});
$socket->on('close', function () use($binder) {
$binder->stop();
});
return $socket;
}