Sign In

genosdb

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

genosdb - npm Package Compare versions

Comparing version
0.23.4
to
0.24.0
+10
-3
dist/index.d.ts

@@ -103,5 +103,12 @@ // Type definitions for genosdb

export interface RoomChannel<T = any> {
/** Send data to all peers, or to specific peer ids. */
send(data: T, targets?: string | string[]): void
on(event: "message", handler: (data: T, peerId: string) => void): void
/** Send to all peers or specific ids. `meta` requires a binary payload. */
send(
data: T,
targets?: string | string[],
meta?: Record<string, any>,
onProgress?: (fraction: number, peerId: string, meta?: any) => void
): void
on(event: "message", handler: (data: T, peerId: string, meta?: any) => void): void
/** Incoming payload still arriving. `fraction` runs 0 → 1. */
on(event: "progress", handler: (fraction: number, peerId: string, meta?: any) => void): void
off(event: string, handler: (...args: any[]) => void): void

@@ -108,0 +115,0 @@ }

{
"name": "genosdb",
"version": "0.23.4",
"version": "0.24.0",
"description": "GenosDB (GDB): distributed graph database in real-time, peer-to-peer, scalable storage - efficient querying of complex relationships.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet