Skip to content

Instantly share code, notes, and snippets.

@drwasho
Last active July 5, 2019 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drwasho/62cba1005905c70b98a88b8eac89c8b9 to your computer and use it in GitHub Desktop.
Save drwasho/62cba1005905c70b98a88b8eac89c8b9 to your computer and use it in GitHub Desktop.
Websocket messages from the OpenBazaar 2.0 server

Wallet Update

{
    "walletUpdate": {
        "confirmed": 0,
        "height": 1180283,
        "unconfirmed": 0
    }
}

Chat Message

{
    "message": {
        "message": "Yo yo ma 2",
        "messageId": "QmWxGcmAmT2KMU2HnwibWsYTHBYUEJ5xPB3dVrhSMib8rS",
        "outgoing": false,
        "peerId": "QmVBbGn2yHsmUBtU6f6RAA1rGLrvXBGs6LqrevTBLXfBkR",
        "read": false,
        "subject": "QmWUHBA4RmTH9zztVb28NT8TEFhttDTdEMAR5ZxRG2DDrW",
        "timestamp": "2019-07-05T11:30:53.128631+10:00"
    }
}

Notification: Follow

{
    "notification": {
        "notificationId": "QmNToGvT3YbtG2m3L1tZmX39Zije6w3Vvq8vwyKeuvBkWM",
        "peerId": "QmYsPDkREkhWxvmFK33pNekzjwkPk1SecTnfUkZkdHwqKk",
        "type": "follow"
    }
}

Notification: Unfollow

{
    "notification": {
        "notificationId": "QmWRZyr6x61wkaEg5nYQr2GJ1tYngdjyWiJN3LwiDDgTV3",
        "peerId": "QmYsPDkREkhWxvmFK33pNekzjwkPk1SecTnfUkZkdHwqKk",
        "type": "unfollow"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment