Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kitten-socket

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kitten-socket

Socket made by kittens

  • 1.4.2
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

kitten-socket

Socket wrapper with no dependencies

Set client uid

  var socket = new Socket(400, '127.0.0.1', {
    uid : 'ec02850a-cccd-470b-9acb-c63c888097c0'
  });

If no uid is provided, it will be generated by the server at the client connection.

Activate server logs

  var socket = new Socket(4000, '127.0.0.1', {
    logsDirectory : 'logs',
    logsFilename  : 'packets.log'
  });

Set server password

  var socket = new Socket(4000, '127.0.0.1', {
    token : 'at6k850a-cccd-421b-9acb-c676888097c0'
  });

Set auth function for socket server

  var socket = new Socket(4000, '127.0.0.1', {
    onSocketRegisterFn : (packet, client, callback) => {
      if (some logic) {
        return callback(true);
      }

      callback(false);
    }
  });

FAQs

Package last updated on 14 Jun 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc