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