You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lua-lib/websocket/client.lua

7 lines
246 B

return setmetatable({},{__index = function(self, name)
if name == 'new' then name = 'sync' end
local backend = require("websocket.client_" .. name)
self[name] = backend
if name == 'sync' then self.new = backend end
return backend
end})