websocket-data-view
A web socket communication log viewer for web socket request panel
Example:
<websocket-data-view messages="..."></websocket-data-view>
API components
This components is a part of API components ecosystem
Usage
Installation
npm install --save @advanced-rest-client/websocket-data-view
In an html file
<html>
<head>
<script type="module">
import '@advanced-rest-client/websocket-data-view/websocket-data-view.js';
</script>
</head>
<body>
<websocket-data-view></websocket-data-view>
</body>
</html>
In a Polymer 3 element
import {PolymerElement, html} from '@polymer/polymer/polymer-element.js';
import '@advanced-rest-client/websocket-data-view/websocket-data-view.js';
class SampleElement extends PolymerElement {
static get template() {
return html`
<websocket-data-view></websocket-data-view>
`;
}
}
customElements.define('sample-element', SampleElement);
Development
git clone https://github.com/advanced-rest-client/websocket-data-view
cd websocket-data-view
npm install
Running the demo locally
npm start
Running the tests
npm test