Force fresh session

Sometimes, the auto-behaviour of our WebSDK to reconnect to existing session might not be desired, but rather establishing a fresh session on a new instance. To force this, you need to unset the session id from local storage before calling ArcwareInit. For this, we provide a static function on the ArcwarePixelstreaming class:

import {
  ArcwarePixelStreaming,
} from "@arcware-cloud/pixelstreaming-websdk";

ArcwarePixelStreaming.clearSessionId();

Last updated