brisk-js

brisk connection over js-flux

Usage no npm install needed!

<script type="module">
  import briskJs from 'https://cdn.skypack.dev/brisk-js';
</script>

README

Table of Contents

WriteCallback

Called when the application should write the next command

Type: Function

Parameters

  • octetStream OutOctetStream

ReadCallback

Called everytime there is a new command to be processed

Type: Function

Parameters

  • cmdValue uint8
  • octetStream InOctetStream

CallbackInfo

Type: Object

Properties

LogInfo

Type: Object

Properties

BriskConnection

Establishing a websocket connection that is intended to be bridged over UDP.

Parameters

  • host string web socket connection, e.g. 'ws://demos.kaazing.com/echo'
  • info CallbackInfo read and write callback
  • log LogInfo object that contains a log() function.