Added constructor
This commit is contained in:
5
core.lua
5
core.lua
@@ -2,6 +2,11 @@
|
|||||||
Core = {};
|
Core = {};
|
||||||
Core.__index = Core;
|
Core.__index = Core;
|
||||||
|
|
||||||
|
function Core:new()
|
||||||
|
local self = setmetatable({}, Core);
|
||||||
|
return self;
|
||||||
|
end
|
||||||
|
|
||||||
function Core:connect()
|
function Core:connect()
|
||||||
ws, err = assert(http.websocket("ws://localhost:8080"));
|
ws, err = assert(http.websocket("ws://localhost:8080"));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user