/asyncapi-websocket-demonstration

Demo project showing how to use the Kraken WebSocket API in JavaScript.

Primary LanguageJavaScript

Kraken WebSockets API Demo in JavaScript

This repository contains a demo application showing you how to interact with the Kraken WebSocket API in JavaScript. It also contains Jest tests that validate incoming messages from Kraken to ensure they match the schema defined in the asyncapi.yaml file.

Installation

Clone the repository and then run the following command to install all dependencies:

npm install

Running the Application

You can run the demo application which will output any messages sent from Kraken using the following command:

node index.js

Running the Tests

You can also run the Jest tests using the following command:

npm run test