fixed improper use of websocket on message recieve event causing an error internally.

This commit is contained in:
MutantRabbit767
2025-09-14 01:39:42 -05:00
parent 73ac09b410
commit aeccde92ca

View File

@@ -54,8 +54,8 @@ ws:on('open', function()
ws:send('Hello server!')
end)
ws:on('message', function(data)
trace.log('Received: ' .. data)
ws:on('message', function(message)
trace.log('Received message: ' .. message.data)
end)
ws:on('close', function(code, reason)