ws-identity-client
v1.0.2
Published
A client for connecting to the web-socket identity server
Downloads
1,611
Readme
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]});