This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
plugins: cannot close websocket connections or set a message timeout #1447
Labels
Type: Refactor
The pull request improves or enhances an existing implementation.
It is currently not possible for a plugin to close an open websocket connection, as the websocket's
close
function is not exposed via the sandbox.In addition it would be extremely useful to trigger an event if no data is received on the socket after x seconds since the last message, in order to detect dead sockets. This would be much better done plugin-side if #1446 were implemented but in the absence of that facility, it would need to be added to the websocket code by clearing a timer when the
message
event is fired and then restarting the timer again.The text was updated successfully, but these errors were encountered: