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