This feature isn't necessary for all implementations; only certain apps will require it.

Not much is needed to close the connection properly, but it's really important to do it. Keeping your WebSocket connected means the instance stays active, leading to costs with Arcware CloudRT.

Just removing the video element isn't enough.

So, how do you close the WebSocket Connection? If you have your PixelStreaming or ArcwareInit ready, it's straightforward:

// Assuming you have your PixelStreaming of ArcwareInit at hand ...
// or

It's as simple as that.

Last updated