diff --git a/Documentation.md b/Documentation.md index 4849fcf..4aa6abc 100644 --- a/Documentation.md +++ b/Documentation.md @@ -20,7 +20,7 @@ const socserv = new SocioServer({ port: 3000 }, { //browser code import { SocioClient } from 'socio/dist/core-client.js'; //or .ts -const sc = new SocioClient(`ws://localhost:3000`, { logging: {verbose:true} }); //make as many as u want +const sc = new SocioClient({ url: `ws://localhost:3000`, logging: {verbose:true} }); //or sc.Connect({url:'ws://localhost:3000'}) called later. Create as many as you like. await sc.ready(); console.log(await sc.Query(`SELECT 42+69 AS RESULT;`));//one-time query diff --git a/README.md b/README.md index 58112d8..27e19fa 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ const socserv = new SocioServer({ port: 3000 }, { db:{Query:QueryWrap}, socio_se //client side browser code. import { SocioClient } from 'socio/dist/core-client'; //Might need to put .js at the end. import { socio } from 'socio/dist/utils'; -const sc = new SocioClient('ws://localhost:3000', {logging:{verbose:true}, name:'Main'}); //create as many as you like +const sc = new SocioClient({ url: `ws://localhost:3000`, logging: {verbose:true} }); //or sc.Connect({url:'ws://localhost:3000'}) called later await sc.ready(); //wait to establish the connection //will recall the callback whenever the Users table is altered. Can also unsubscribe. diff --git a/core/README.md b/core/README.md index 58112d8..961b42a 100644 --- a/core/README.md +++ b/core/README.md @@ -52,7 +52,7 @@ const socserv = new SocioServer({ port: 3000 }, { db:{Query:QueryWrap}, socio_se //client side browser code. import { SocioClient } from 'socio/dist/core-client'; //Might need to put .js at the end. import { socio } from 'socio/dist/utils'; -const sc = new SocioClient('ws://localhost:3000', {logging:{verbose:true}, name:'Main'}); //create as many as you like +const sc = new SocioClient({ url: `ws://localhost:3000`, logging: {verbose:true} }); //or sc.Connect({url:'ws://localhost:3000'}) called later. Create as many as you like. await sc.ready(); //wait to establish the connection //will recall the callback whenever the Users table is altered. Can also unsubscribe. diff --git a/core/package-lock.json b/core/package-lock.json index 88205e1..3c8bcc4 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -1,12 +1,12 @@ { "name": "socio", - "version": "1.14.0", + "version": "1.14.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "socio", - "version": "1.14.0", + "version": "1.14.1", "license": "MIT", "dependencies": { "js-yaml": "^4.1.0", diff --git a/core/package.json b/core/package.json index e393100..6386da9 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "socio", - "version": "1.14.0", + "version": "1.14.1", "description": "A WebSocket Real-Time Communication (RTC) API framework.", "main": "./dist/core.js", "type": "module",