Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
gremlin-client
Advanced tools
A proof of concept WebSocket JavaScript client for TinkerPop3 Gremlin Server.
Tested with Node.js v0.10.29 and v0.11.13. May work in the browser with browserify.
// Will open a WebSocket to ws://localhost:8182 by default
var client = gremlin.createClient();
same as:
var client = gremlin.createClient(8182, 'localhost');
The client supports two modes: streaming results, or traditional callback mode.
Return a Node.js stream which emits a data
event with the raw data returned by Gremlin Server every time it receives a message. The stream simultaneously also emits a higher level result
event.
The stream emits an end
event when receiving the last, type: 0
message.
var query = client.stream('g.V()');
query.on('result', function(result) {
console.log(result);
});
// Alternatively:
// query.on('data', function(message) {
// console.log(message.result);
// });
query.on('end', function(msg) {
console.log("All results fetched", msg);
});
Will execute the provided callback when all results are actually returned from the server. Until it receives the final type: 0
message, the client will internally concatenate all partial results returned over different messages.
.execute()
with promiseFAQs
JavaScript client for TinkerPop3 Gremlin Server
The npm package gremlin-client receives a total of 6 weekly downloads. As such, gremlin-client popularity was classified as not popular.
We found that gremlin-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.