unpublish
Stops the process of publishing streams to the streaming platform. After calling this method, the SDK automatically terminates the connection between the publisher and the streaming platform.
Throws
An exception thrown in the case of encountering issues during execution of the method.