Licence
ISC
Version
1.0.2
Deps
5
Size
17 kB
Vulns
0
Weekly
0
Client for web-socket identity servers
This is a node.js client to connect with the web-socket identity server ws-identity.
Requesting new session Id
- Submit pubKeyHex to socket server and receice ws-identity session ticket
const wsSessionBackend = new WsIdentityClient({
endpoint: [ws-server-address],
pathPrefix: "/session",
});
const sessionId = wsSessionBackend.write("new",{pubKeyHex: [pub-key-hex]});