Aerys\Websocket\Rfc6455Endpoint::defaultBuilder PHP Method

defaultBuilder() private method

.. no need to really use it
private defaultBuilder ( Aerys\Websocket\Rfc6455Client $client )
$client Aerys\Websocket\Rfc6455Client
    private function defaultBuilder(Rfc6455Client $client)
    {
        $yield = yield;
        while (1) {
            $data = [];
            $frameInfo = $yield;
            $data[] = $yield["msg"];
            while (($yield = yield) !== null) {
            }
            $data[] = $yield;
            $msg = count($data) == 1 ? $data[0] : implode($data);
            $yield = (yield $msg + $frameInfo);
        }
    }