Hi Scott,
The sockets which are opened by the function rosstalk.sendMessage() are automatically closed after a few seconds of inactivity and cannot be closed explicitly. However, if you would like to have a connection that you can control and is open indefinitely, you can make use of a listener which can be created by the <listener /> tag with ogScript. Please note that this script-based listener would have to be manually closed when you are done with it.
Hope it helps. Please feel free to reach out if you have any questions.
Best Regards,
------------------------------
Altaz Daruwala
Ross Video
------------------------------