ServerBase.eventLoop

Gets the server's event loop. It should be used to run the server.

class ServerBase
@property pure nothrow @safe @nogc
EventLoop
eventLoop
()

Examples

auto server = new Server();
server.host("0.0.0.0");
while(true) server.eventLoop.loop();

Meta