Fix WebSocket.closeCode index behavior

This commit is contained in:
regginator 2023-06-14 14:33:53 -05:00
parent a16eab637c
commit 74842da7a8

View file

@ -35,7 +35,7 @@ return freeze(setmetatable({
}, { }, {
__index = function(self, key) __index = function(self, key)
if key == "closeCode" then if key == "closeCode" then
return close_code() return close_code(websocket)
end end
end, end,
})) }))