import { IDocumentServiceFactory } from "@fluidframework/driver-definitions" ; import { OdspResourceTokenFetchOptions , TokenFetcher , IPersistedCache , HostStoragePolicy , } from "@fluidframework/odsp-driver-definitions" ; import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore" ; import { getSocketIo } from "./getSocketIo" ; /**
 * Factory for creating the sharepoint document service. Use this if you want to
 * use the sharepoint implementation.
 */ export class OdspDocumentServiceFactory extends OdspDocumentServiceFactoryCore implements IDocumentServiceFactory { constructor ( getStorageToken , getWebsocketToken , persistedCache ? , hostPolicy ? ) { super ( getStorageToken , getWebsocketToken , async ( ) => getSocketIo ( ) , persistedCache , hostPolicy ) ; } }