ifs_shm_http_client_ts v1.5.2
IF_SHM_CLIENT
@Author
Nabajyoti Sahoo
#Desc
a ts library to communicate with shm
To Build & Publish
npm run build
tsc
npm publish
To add current library dependency in your project
npm install --save ifs_shm_http_client_ts
To Use Library in Your Project
//import
import { IfShmClient } from 'ifs_shm_http_client_ts';
//initialize
IfShmClient.initialize('http://localhost:8080', '{authKey}');
//create or update a shm with json
const result = await IfShmClient.createOrUpdateShmByKeyWithFile(formData, this.shmKey,this.header, 'METADATASTRING', '', '600000');
//create or update shm with a file
const result = await IfShmClient.createOrUpdateShmByKeyWithJsonPayLoad(Object.fromEntries(this.body), this.shmKey,this.header, 'METADATASTRING', '', '600000');
//get shm by key
const text1 = await IfShmClient.getShmByKey( this.shmKey,this.header);
//delete shm by key
const text2 = await IfShmClient.deleteShmByKey( this.shmKey,this.header);
//get shm server info
const text4 = await IfShmClient.getShmServerInfo( this.header);
//check shm state
const text5 = await IfShmClient.checkShmStateByShmKey( this.shmKey,this.header);
//get shm tree with children
const text6 = await IfShmClient.getShmTreeForAShm( this.shmKey,this.header);
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago