Stepper wasm integration (#951)

This commit is contained in:
Dima
2020-10-05 17:17:04 +03:00
committed by GitHub
parent 98e20c0ff5
commit 0a49f84d08
12 changed files with 459 additions and 10 deletions

12
src/globalState.ts Normal file
View File

@ -0,0 +1,12 @@
import {Service} from "./call_service";
// TODO put state with wasm file in each created FluenceClient
let services: Map<string, Service> = new Map();
export function registerService(service: Service) {
services.set(service.serviceId, service)
}
export function getService(serviceId: string): Service | undefined {
return services.get(serviceId)
}