We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdd2a37 commit 5a26fb1Copy full SHA for 5a26fb1
websocket.lua
@@ -6,7 +6,7 @@ usage:
6
local client = require("websocket").new("127.0.0.1", 5000)
7
function client:onmessage(s) print(s) end
8
function client:onopen() self:send("hello from love2d") end
9
- function client:onclose = function() print("closed") end
+ function client:onclose() print("closed") end
10
11
function love.update()
12
client:update()
0 commit comments