Software /
code /
verse
Comparison
init.lua @ 492:22844ac3be4e
server: Import one of Prosodys net.server implementations
Wraps up this behavior in a new module.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 21 Jun 2023 12:21:09 +0200 |
parent | 490:6b2f31da9610 |
child | 505:289c866d7fb0 |
comparison
equal
deleted
inserted
replaced
491:edf078a58f25 | 492:22844ac3be4e |
---|---|
5 local socket = require"socket"; | 5 local socket = require"socket"; |
6 | 6 |
7 -- Load LuaSec if available | 7 -- Load LuaSec if available |
8 pcall(require, "ssl"); | 8 pcall(require, "ssl"); |
9 | 9 |
10 local server = require "prosody.net.server_select"; | 10 local server = require "verse.server"; |
11 package.loaded["prosody.net.server"] = server; -- XXX | 11 package.loaded["prosody.net.server"] = server; -- XXX |
12 local events = require "prosody.util.events"; | 12 local events = require "prosody.util.events"; |
13 local logger = require "prosody.util.logger"; | 13 local logger = require "prosody.util.logger"; |
14 | 14 |
15 local format = require "prosody.util.format".format; | 15 local format = require "prosody.util.format".format; |