Build the WebSocket Server.

@return React\Socket\Server
508707
protected function bootWsServer()
    {
        $this->ws = new ReactServer($this->loop);
        $this->ws->listen($this->option('port'), self::IP);
        
        return $this->ws;
    }
875718
protected function bindWebsocket()
    {
        $this->app->singleton(Websocket::class, function (Container $app) {
            return new Websocket($app->make(RoomContract::class), new Pipeline($app));
        });

        $this->app->alias(Websocket::class, 'swoole.websocket');
    }
48047
public function build()
    {
        $stream = new Stream('php://temp', 'wb+');


        $stream->write(json_encode(new MessageDecorator($this->getMessage())));

        return $this->getHttpMessage()
            ->withAddedHeader('Content-Type', 'application/json')
            ->withBody($stream);
    }
437447
public function build()
    {
        $headers = array();
        foreach (get_object_vars($this) as $header => $value) {
            $headers[] = $header . ": " . (string)$value;
        }
        return $headers;
    }
487115
public function websocketClient()
    {
        $this->writeln('Starting demo websocket client...');

        $client = new Client(
            'ws://' .
            ($this->swooleConfig['ws']['host'] ?? self::DEFAULT_SWOOLE_HOST) . ':' .
            ($this->swooleConfig['ws']['port'] ?? self::DEFAULT_SWOOLE_PORT)
        );
        $client->send(JsonHelper::encode(['handler' => SwooleTcpJob::class]));
        $this->writeln($client->receive());
        $client->close();
    }
915104
public function build()
    {
        # Fixed Header
        # Control Packet Type
        $cmd = $this->getMessageType() << 4;

        $cmd |= ($this->reserved_flags & 0x0F);

        $header = chr($cmd) . $this->remaining_length_bytes;

        $header .= $this->buildVariableHeader();

        return $header;
    }
203778
public function build(): StartScreencastRequest
	{
		$instance = new StartScreencastRequest();
		$instance->format = $this->format;
		$instance->quality = $this->quality;
		$instance->maxWidth = $this->maxWidth;
		$instance->maxHeight = $this->maxHeight;
		$instance->everyNthFrame = $this->everyNthFrame;
		return $instance;
	}
1246596
public function server()
    {
        if($this->server === null) {
            $data = $this->serverRequest->getServerParams();
            $this->server = $this->builder->serverData($data);
        }
        
        return $this->server;
    }
1230394
public function build()
    {
        $soapClient = (new Factory)->getClient($this->getEndpoint(), $this->getSoapOptions());

        $params['user_id'] = $this->userId;
        $params['agent_code'] = $this->agentCode;
        $params['agent_seq'] = $this->agentSeq;
        $client = new $this->client($soapClient, $params);

        if ($this->log) {
            //
        }

        return $client;
    }
1187503
public function buildSwagger()
    {
        $swagger = $this->swaggerConfig;
        $swagger['swagger'] = '2.0';


        $paths = $this->routingProcessor->process();
        if (count($paths) > 0) $swagger['paths'] = $paths;
        $schemes = $this->schemaProcessor->process();
        if (count($schemes) > 0) $swagger['definitions'] = $schemes;


        return json_encode($swagger);
    }
830989
public function server()
    {
        if ($this->server != null) {
            return $this->server;
        }

        return $this->server = $this->createServer();
    }
926294
public function build(): GetOuterHTMLRequest
	{
		$instance = new GetOuterHTMLRequest();
		$instance->nodeId = $this->nodeId;
		$instance->backendNodeId = $this->backendNodeId;
		$instance->objectId = $this->objectId;
		return $instance;
	}
1198638
public function build()
    {
        if (!$this->build)
        {
            $this->build = $this->slice->make(
                $this->routes()
            );
        }

        return $this->build;
    }
1184981
protected function bindWebsocket()
    {
        $this->app->bind(Websocket::class, function (App $app) {
            return new Websocket($app, $app->make(RoomContract::class));
        });

        $this->app->bind('swoole.websocket', Websocket::class);
    }
1028156
public function getServer()
    {
        $server = new Server(
            $this->getSource(),
            $this->getCache(),
            $this->getApi()
        );

        $server->setSourcePathPrefix($this->getSourcePathPrefix());
        $server->setCachePathPrefix($this->getCachePathPrefix());
        $server->setGroupCacheInFolders($this->getGroupCacheInFolders());
        $server->setCacheWithFileExtensions($this->getCacheWithFileExtensions());
        $server->setDefaults($this->getDefaults());
        $server->setPresets($this->getPresets());
        $server->setBaseUrl($this->getBaseUrl());
        $server->setResponseFactory($this->getResponseFactory());

        return $server;
    }
865215
public function build()
    {
        if (isset($this->styles)) {
            return $this->styles;
        }

        $this->styles = BuildUtil::removeNullElements([
            'header' => BuildUtil::build($this->headerStyleBuilder),
            'hero' => BuildUtil::build($this->heroStyleBuilder),
            'body' => BuildUtil::build($this->bodyStyleBuilder),
            'footer' => BuildUtil::build($this->footerStyleBuilder),
        ]);

        return $this->styles;
    }
413343
public function build()
    {
        $cm = $this->builder->getClassMetadata();

        $cm->mapEmbedded($this->mapping);

        return $this->builder;
    }