A simple long-polling server (and client) written in Lua.
source: javascript.info
- In environments where it is not possible to create a web server (e.g. in a Garry's Mod game), but getting "webhooks" is necessary
- As a single point of collecting webhooks, for example to get updates from all your Telegram bots with just one request. To do this, make
https://api.telegram.org/bot$TOKEN/setWebhook?url=https://your.app/SomeS3cretP@th?this_key=and_value&will_be=merged_with_updates_sent_by_telegram&botname=some_id
. - Simple chat-like services implementations
β .
βββ examples
β βββ advanced
β β βββ client.lua
β β βββ docker-compose.yml
β β βββ Dockerfile
β β βββ README.MD
β β βββ server.lua
β βββ simple
β βββ README.MD
β βββ server.lua
βββ lua
β βββ long-polling
β βββ dataproviders
β β βββ localtable.lua
β β βββ redis.lua
β βββ misc
β β βββ redis-safe.lua
β βββ init.lua
βββ LICENSE
βββ README.MD
Not ready yet. I am lazy. But if you create an issue so I can see that someone needs it, I will create code documentation instantly β‘.
But you can look at the examples below to understand what is what. Also, in the examples there are README files with a lot of useful information.
- π₯ advanced. Source code of real-working application
- simple. Simple to understand example of using the library
- Move out
redis-safe
into separate repo - Split the library and application examples into separate repos. Need for the ability to do
require("kupol.server")
andrequire("kupol.client")
- Create the
mysql
dataprovider, using luasocket-mysql driver - Also create the
filesystem
dataprovider