interface ServerInterface

Constants

SERVER_HTTP

SERVER_WEBSOCKET

SERVER_BASE

Methods

init(ServerConfig $config)

Initialize the server with the given configuration.

void
start()

Start the server.

Server
getServer()

Get the underlying Swoole server instance.

Details

at line 21
ServerInterface init(ServerConfig $config)

Initialize the server with the given configuration.

Parameters

ServerConfig $config

Return Value

ServerInterface

at line 27
void start()

Start the server.

Return Value

void

at line 32
Server getServer()

Get the underlying Swoole server instance.

Return Value

Server