Skip to content

Commit

Permalink
Updating the version number + documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
pawsaw committed Nov 30, 2020
1 parent fe475ee commit 24a16dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
const sm: SubscriptionManager<string> = createSubscriptionManager();
```

Here _string_ is the data type of the channel, as default. Other data types are acceptable, but less unusual.
Here _string_ is the data type of the channel, as default. Other data types are acceptable, but less usual.

Here a Subscription Manager is created, where the channels are of the datatype _number_:

Expand Down Expand Up @@ -133,7 +133,7 @@ sub.free();

As you can see here, the _ChatService_ may be a singleton (not mandatory), where **several (!) clients may want to register** to receive messages.

If a client is no longer interested in receiving the messages, he wants to **unsubscribe**.
If a client is no longer interested in receiving the messages, he wants to **free** the Subscription.

Maybe you want to offer another method in the ChatService to get information about new ChatUsers, as the following example shows:

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pawsaw/subscription-manager",
"version": "0.2.0",
"version": "1.0.0",
"description": "Subscription Manager - Lightweight Utility for managing Subscriptions",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 24a16dd

Please sign in to comment.