panel-bridge-client

Client library for connecting to panel bridge

Usage no npm install needed!

<script type="module">
  import panelBridgeClient from 'https://cdn.skypack.dev/panel-bridge-client';
</script>

README

bridge-client

Client library for connecting to panel bridge

var bridge = new Bridge();

bridge.emit('someAction', {
  message: 'This is a message from bridge'
});

bridge.on('someEvent', function (data) {
  console.log(data);
});

development

Edit src/main.coffee, use npm run prepublish to build compiled and minified lib/bridge.js.