server.lua

Wed, 21 Jun 2023 12:21:09 +0200

author
Kim Alvefur <zash@zash.se>
date
Wed, 21 Jun 2023 12:21:09 +0200
changeset 492
22844ac3be4e
permissions
-rw-r--r--

server: Import one of Prosodys net.server implementations

Wraps up this behavior in a new module.

local have_epoll, server_epoll = pcall(require, "prosody.net.server_epoll");
if have_epoll then return server_epoll; end

local server_select = require "prosody.net.server_select";
return server_select;

mercurial