1.1.5 • Published 25 days ago

@websocketpie/client v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
25 days ago

NPM: @websocketpie/client

A client for connecting to, sending and receiving messages from a @websocketpie/server instance.

This package is a client that abstracts @websocketpie/server's public API behind simple publicly exported methods.

Getting started, simplest usage:

import PieClient from '@websocketpie/client';

const pie = new PieClient();
pie.onData = x => console.log('onData:', x.payload);
await pie.quickConnect('ws://localhost:8000');
pie.sendData("hello multi-user world");

Extras

Add <div id='websocketpie-connection-status'></div> to the page to have @websocketpie/client automatically update it with the connection status

1.1.5

25 days ago

1.1.4

1 month ago

1.1.3

4 months ago

1.1.2

5 months ago

1.1.1

6 months ago

1.0.2

8 months ago

1.1.0

8 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.17.0

1 year ago

0.16.0

1 year ago

0.15.12

1 year ago

0.15.11

1 year ago

0.15.10

2 years ago

0.15.9

2 years ago

0.15.8

2 years ago

0.15.6

2 years ago

0.15.5

2 years ago

0.15.4

2 years ago

0.15.3

2 years ago

0.15.2

2 years ago

0.15.1

2 years ago

0.15.0

2 years ago

0.14.3

2 years ago

0.14.2

2 years ago

0.14.1

2 years ago

0.14.0

2 years ago

0.13.7

2 years ago

0.13.6

2 years ago

0.13.5

2 years ago

0.13.4

2 years ago

0.13.3

2 years ago