This package has been deprecated

Author message:

This component is deprecated

@advanced-rest-client/web-socket
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

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

Package Sidebar

Install

npm i @advanced-rest-client/web-socket

Weekly Downloads

4

Version

3.1.0

License

Apache-2.0

Unpacked Size

40.8 kB

Total Files

11

Last publish

Collaborators

  • carowright
  • jarrodek
  • twoplustwoone
  • lbauret