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 20
ServerInterface init(ServerConfig $config)

Initialize the server with the given configuration.

Parameters

ServerConfig $config

Return Value

ServerInterface

at line 25
void start()

Start the server.

Return Value

void

at line 30
Server getServer()

Get the underlying Swoole server instance.

Return Value

Server