diff options
author | anonymous | 2022-09-21 12:46:08 -0400 |
---|---|---|
committer | anonymous | 2022-09-21 12:46:08 -0400 |
commit | 25f68fec75d103044d7d72003c3fc56ddaa9ca9c (patch) | |
tree | 7c0244cfa938adb598d679fd8f04dc18a3d52264 | |
parent | 8453493fc930c1d3579bef3e8b41639380f018fb (diff) |
typos in readme
-rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -3,7 +3,7 @@ This is the base Javascript library that interfaces with the [Graffiti server](https://github.com/csail-graffiti/server). We recommend not using the vanilla library itself but instead using framework plugins built on top of this library like the [Graffiti plugin for Vue.JS](https://github.com/csail-graffiti/graffiti-js-vue). -With this library: +Example usage: ```javascript import GraffitiSocket from "https://csail-graffiti.github.io/graffiti-js-vanilla/socket.js" @@ -18,9 +18,9 @@ const queryID = await gs.subscribe({ content: { $type: 'string' } } // With an arbitrary update callback - (obj) => console.log(`An object has been created: {obj}`) + (obj) => console.log(`An object has been created: {obj}`), // and delete callback - (obj) => console.log(`An object with id {obj._id} by user {obj._by} has been deleted`. + (obj) => console.log(`An object with id {obj._id} by user {obj._by} has been deleted`.) ) // And then unsubscribe to those queries @@ -30,10 +30,10 @@ await gs.unsubscribe(queryID) gs.logIn() gs.logOut() if (gs.loggedIn) { - ... + // ... } -// When you are logged in you reference your user ID +// When you are logged in you can reference your user ID console.log(gs.myID) // And when you are logged in you can |