We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writing to a websocket from a timer-callback fails:
local weblit = require("weblit") local timer = require("timer") weblit.app .bind({host = "127.0.0.1", port = 1337}) .use(weblit.logger) .use(weblit.autoHeaders) .use(weblit.websocket({path = '/ws', host = '127.0.0.1'}, function(req, read, write) for thing in read do p(thing) timer.setTimeout(1000, function() print("timeout") write({opcode = 1; payload = "websocket-hello"}) end) end write() end)) .start()
...the same happens if I try to write to a websocket from a childprocess's on('exit') callback
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Writing to a websocket from a timer-callback fails:
...the same happens if I try to write to a websocket from a childprocess's on('exit') callback
The text was updated successfully, but these errors were encountered: