npm.io
3.1.0 • Published 6 years ago

@advanced-rest-client/web-socket

Licence
Apache-2.0
Version
3.1.0
Deps
1
Size
40 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

Published on NPM

Build Status

web-socket

A web component wrapper for web socket.

Usage

Installation

npm install --save @advanced-rest-client/web-socket
In a LitElement
import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/web-socket/web-socket.js';

class SampleElement extends LitElement {
  render() {
    return html`
    <web-socket auto url="wss://echo.websocket.org"></web-socket>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/web-socket
cd web-socket
npm install
Running the demo locally
npm start
Running the tests
npm test

Keywords