Skip to content

Commit eb4ca0d

Browse files
committed
更新Readme
1 parent b364dfd commit eb4ca0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ client.onopen = function()
1414
client:send("hello from love2d")
1515
client:close()
1616
end
17-
client.onclose = function()
18-
print("closed")
17+
client.onclose = function(code, reason)
18+
print("closecode: "..code..", reason: "..reason)
1919
end
2020

2121
function love.update()

0 commit comments

Comments
 (0)