[BUG] Flumi not logging all errors.
Describe the bug In #86, I talked about my issues with WebSocket. It turned out to be improper usage of the event callbacks. I made this mistake initially because of the documentation for WebSockets being wrong. I continued to make this mistake assuming it was just WebSockets not being properly implemented, but WebSockets actually work really well.
It turns out that the responses from these event callbacks are actually in the format of a table, instead of a string (as shown in the docs). when appending the table to a string Lua throws an error, but for some reason the error isn't shown inside Flumi's dev console. The only reason I found this out was because iamonfiya2 saw the error inside Godot when running my site sussybaka.fent.
To Reproduce Steps to reproduce the behavior:
- attach this event to a WebSocket from the documentation.
ws:on('message', function(data)
trace.log('Received: ' .. data)
end)
- send a WebSocket message to
wss://echo.websocket.org - notice there isn't any errors despite appending a table to a string. also notice nothing is actually printed.
Expected behavior
Flumi should throw error: [string "
Desktop (please complete the following information):
- OS: Linux
- Version 1.0.2