Skip to content

A tornado websocket server to bridge HTTP requests to/from a MOTU AVB interface's datastore API.

License

Notifications You must be signed in to change notification settings

ChristopherJohnston/motu_websocket_bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MOTU AVB Websocket Bridge

A tornado websocket server to bridge HTTP requests to/from a MOTU AVB interface's datastore API.

For Datastore API, see MOTU AVB Datastore API Docs

For testing connectivity to a virtual device, use my MOTU Development AVB Server repository.

Usage

In the command line at the project root, call

./run --avbserver http://localhost:8888 --port 8889

Websocket connections can be made from, for example, Chrome DevTools as follows:

var ws = new WebSocket("ws://localhost:8889/datastore");
ws.onopen = function() {
    console.log("opened")
};

ws.onmessage = function (evt) {
    console.log(evt.data)
};

Updates can be sent using:

ws.send(JSON.stringify({ "ext/ibankDisplayOrder": "2:1:0"}));

About

A tornado websocket server to bridge HTTP requests to/from a MOTU AVB interface's datastore API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published