Software /
code /
verse
Annotate
server.lua @ 495:1ca531495c3d
squishy: Move some compat layers into verse namespace
This way, if the prosody libraries are available, they could be used
from the verse compat layres
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 21 Jun 2023 21:03:05 +0200 |
parent | 492:22844ac3be4e |
rev | line source |
---|---|
492
22844ac3be4e
server: Import one of Prosodys net.server implementations
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1 local have_epoll, server_epoll = pcall(require, "prosody.net.server_epoll"); |
22844ac3be4e
server: Import one of Prosodys net.server implementations
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 if have_epoll then return server_epoll; end |
22844ac3be4e
server: Import one of Prosodys net.server implementations
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
3 |
22844ac3be4e
server: Import one of Prosodys net.server implementations
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
4 local server_select = require "prosody.net.server_select"; |
22844ac3be4e
server: Import one of Prosodys net.server implementations
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
5 return server_select; |