From 73ed3237e6741927dfbbeb144129c62ccf5090eb Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 25 Sep 2019 21:03:55 +0200 Subject: [PATCH] v 1.2.3 typo --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5e21c63..ea1e606 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ client.connect().then(async () => { rpclibrary offers a special type of call that can be used with callbacks. The callback **has to be the last argument** and **may be the only passed function**. -In order to function, some metadata has to be included in the return value of hooks. On success, the function is expected to return a `type SubscriptionResponse = { result: 'Success', uuid: string }` or in case of errors a `type ErrorResposne = { result: 'Error' }`. +In order to function, some metadata has to be included in the return value of hooks. On success, the function is expected to return a `type SubscriptionResponse = { result: 'Success', uuid: string }` or in case of errors a `type ErrorResponse = { result: 'Error' }`. The uuid, as the name implies, is used to uniquely identify the callback for a given invocation and also dictates the name given to the client-side RPC. Unless you got a preferred way of generating these (e.g. using some kind of unique information important to your task) we reccomend [uuid](https://www.npmjs.com/package/uuid) for this purpose. diff --git a/package.json b/package.json index 4ec0a5c..5bf366c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rpclibrary", - "version": "1.2.2", + "version": "1.2.3", "description": "rpclibrary is a websocket on steroids!", "main": "./js/Index.js", "repository": {