Module: session-client

Creates a new Session client
Properties:
Name Type Description
pollRate Number How much delay between poll requests
lastHash Number Poll for messages from this hash on
displayName String Send messages with this profile name
homeServer String URL for this identity's file server
homeServerPubKey String Pubkey in hex for this identity's file server
identityOutput String human readable string with seed words if generated a new identity
ourPubkeyHex String This identity's pubkey (SessionID)
keypair object This identity's keypair buffers
open Boolean Should we continue polling for messages
encAvatarUrl String Encrypted avatar URL
profileKeyBuf Buffer Key to decrypt avatar URL
Implements:
  • EventEmitter
Author:
  • Ryan Tharp
License:
  • ISC
Source:
Tutorials:
  • Tutorial: sample.js

Classes

SessionClient

Type Definitions

messagesCallback(messages)

content dataMessage protobuf
Parameters:
Name Type Description
messages Array an array of Content protobuf
Source:

updateLastHashCallback(hash)

Handle when the cursor in the pubkey's inbox moves
Parameters:
Name Type Description
hash String The last hash returns from the storage server for this pubkey
Source: