upd readme's

This commit is contained in:
Rolands 2025-11-30 12:02:48 +01:00
parent 9a27ee1c4f
commit 71710b7ca9
5 changed files with 6 additions and 6 deletions

View file

@ -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.

View file

@ -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",

View file

@ -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",