lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 19 December 2014 at 03:39, Marc Balmer <marc@msys.ch> wrote:
websocket module

If you care, there is a websocket lib + module inside of prosody.
Library that handles low level framing: http://hg.prosody.im/trunk/file/tip/net/websocket/frames.lua
Generic client: http://hg.prosody.im/trunk/file/tip/net/websocket.lua
Example server (implementing http://tools.ietf.org/html/draft-ietf-xmpp-websocket-10): http://hg.prosody.im/trunk/file/tip/plugins/mod_websocket.lua

At least the low level framing should be entirely reusuable, the rest with minor modifications.