четверг, 17 апреля 2014 г., 17:47:09 UTC+4 пользователь Vladislav Manchev написал:
Looks great! I'll find some time to test it over the weekend,
definitely have some use for it.
Just took a quick look at the code and was wondering if there's any
particular reason why you're defining redisArr2table instead of
using this:
https://github.com/agentzh/lua-resty-redis#array_to_hash
That's why any feedback is welcome! :)
I think, i've just missed it. One place to refactor.
There is one known caveat right now:
WAMP SPEC says, that WAMP IDs that are integers between (inclusive) 0 and 2^53 (9007199254740992)
But the problem is, that any numbers with more than 14 digits are displaying, and being serialized in scientific format.
It's also imposible to use construction such as string.format("%.0f",a), cause in this case value will be encoded as string. That's not the problem for _javascript_ client, but for any typed language client will be error.
So i've just reduced the max number.
I'm just a Lua adopter, so may be it's even not the problem at all. If some one can help with that - will be great!
On 17.04.2014 15:32, Константин
Буркалев wrote:
Hi, guys!
I've created a Lua project "Wiola". It's a WAMP (WebSocket
Application Messaging Protocol) implementation in Lua, using
the power of LUA Nginx module, Lua WebSocket addon, and Redis
as cache store. It supports json and msgpack serializers.
May be someone will be interested in it.
BTW, i have also a Wampy.js (the browser client side
implementation of WAMP), which works with Wiola.
Any feedback is welcome!
.