Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@graffy/client
Advanced tools
Graffy client library for the browser, usin the `fetch()` or `WebSocket` APIs. This module is intended to be used with a Node.js server running Graffy Server.
Graffy client library for the browser, usin the fetch()
or WebSocket
APIs. This module is intended to be used with a Node.js server running Graffy Server.
import Graffy from '@graffy/core';
import client from '@graffy/client';
const store = new Graffy();
store.use(client(url, options));
// Add downstream providers to the store
An HTTP connection is used if the URL begins with http(s)://
, and a Websocket is used if it begins with ws(s)://
.
getOptions(operation, payload, options)
, a callback to get the options that should be passed to the server with each operation.connInfoPath
, a location in the store to put connection metadata. Defaults to connection
.If using a WebSocket connection, Graffy client creates a connection: { status: boolean }
node in the store. The location of this node can be controlled by the connInfoPath
option. Reading from or watching this node provides information about the current connection status. The application may explicitly tear-down or re-establish connections by writing false
or true
to it, respectively.
See Graffy documentation for more.
FAQs
Graffy client library for the browser, usin the `fetch()` or `WebSocket` APIs. This module is intended to be used with a Node.js server running Graffy Server.
The npm package @graffy/client receives a total of 526 weekly downloads. As such, @graffy/client popularity was classified as not popular.
We found that @graffy/client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.