Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ws-identity-client

brioux937ISC1.0.2TypeScript support: included

A client for connecting to the web-socket identity server

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]});