Software /
code /
prosody
File
util/time.lua @ 7761:e0e1f6d6fb4f
mod_websocket: Use contains_token from util.http for checking if the requested WebSocket sub-protocols include XMPP
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 04 Dec 2016 11:57:26 +0100 |
parent | 7461:72e48bddf617 |
line wrap: on
line source
-- Import gettime() from LuaSocket, as a way to access high-resolution time -- in a platform-independent way local socket_gettime = require "socket".gettime; return { now = socket_gettime; }