|
|
||
|
cheersIs there something wrong with the source that the socket is producing, as it seems toWhereas the following works:Results in:Hi,as it looks like msgpack supports ltn12, but I just can't
I'm trying to use luasockets + msgpack together,
seem to get it to work:
sock = socket.tcp(cv)
src = "">
for _, v in mp.unpacker(src) do
print(v)
end
bad argument #1 to unpacker (string or function expected, got table)
local ltn12 = require 'ltn12'
src = "" 'r'))
for _, v in mp.unpacker(src) do
print(v)
end
be a table?
Chris