Skip to main content

Network

The SDK is connected to a corvina instance to test the widget in a real context. The corvina instance is defined in index.ts:

import { initCorvina, setCommunicationSettings, CommunicationSettings } from "corvina";
import { globalWidgetRegistry } from "corvina";

// Disabling organization assets prevent to load widgets from object store.
globalWidgetRegistry.disableOrganizationAssets();

initCorvina( ()=> {
setCommunicationSettings( "corvina.io", "exor" );
console.log(CommunicationSettings)
});

The setCommunicationSettings has two parameters:

  • the address of corvina instance (default corvina.io)
  • the organization name (default exor)