Skip to content

Instantly share code, notes, and snippets.

@emschwartz
Last active June 12, 2019 07:37
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save emschwartz/887a16bc50d34dd5ed220635555800ef to your computer and use it in GitHub Desktop.
STREAM Example Output
ilp-protocol-stream git:master ❯ node example.js ⏎
server generated ILP address (test.amundsen.bmp.btp18q1xrp.tPcfTiM2_-stOLrODMIQbFX7BLln60TC8qy2BefdDsQ.local.X22YdPW64RhBKHCHYYjVDnpz7x83I76gbWq6_JY4Ngs.PNOMQrElaGRlc5VK2uKIFSug) and shared secret (e945dd40aecfe9191e83e8dce2ab81d1fe4760c9ef5a0f71b227adc9308ca173) for client
server got connection
sending data to server on stream 1
sending data to server on stream 3
sending money to server on stream 1
server got a new stream: 1
server got a new stream: 3
server stream 1 got incoming payment for: 100
server stream 1 got data: hello there!
server stream 3 got data: hello there!
sent 100 units
sending money to server on stream 3
server stream 3 got incoming payment for: 200
sent 200 units
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment