New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ndx-socket

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ndx-socket

websockets for ndx-framework

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
42
180%
Maintainers
1
Weekly downloads
 
Created
Source

ndx-socket

websockets for ndx-framework

install with
npm install --sve ndx-socket

what it does

ndx-socket provides callbacks for socket connection and disconnect

example

src/server/app.coffee

require 'ndx-server'
.config
  database: 'db'
.use 'ndx-socket'
.controller (ndx) ->
  sockets = []
  ndx.socket.on 'connection', (socket) ->
    #do something with the socket
    sockets.push socket
  ndx.socket.on 'disconnect', (socket) ->
    #socket has disconnected
    sockets.splice sockets.indexOf(socket), 1

FAQs

Package last updated on 18 Nov 2019

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