Is there a way to disconnect immediately? Looking at the source code, I was under the impression that RenderStreaming.Stop() would disconenct from the signaling server, but that doesn't seem to work, at least not until the next polling interval. If I kill the process immediately, I also get 1006 as the close code, when I do it with a small delay I get 1005. Experiments indicate, that this time is pretty much exactly the Interval property of the RenderStreaming component, which determines the polling interval to the signaling server. However, the Unity Editor freezes for a bit before exiting play mode and the WebApp stays alive during this time, too. When I quit I call DeleteConnection() on the SingleConnection component and Stop() on the RenderStreaming component, before killing the WebApp process. exe in StreamingAssets and start it via Process.Start()). In my project I want to start and stop the WebApp from Unity (I have the. Is there documentation on how to shut down renderstreaming correctly?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |