
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
nodulator-socket
Advanced tools
Socket.io module implementation for Nodulator
Provides server-side socket.io
implementation for Nodulator
socket.io
passport
sessionYou can automaticaly install Nodulator
and Nodulator-Socket
by running
$> sudo npm install -g Nodulator
$> Nodulator install socket
Or you can just run npm
:
$> npm install nodulator nodulator-socket
Nodulator = require 'nodulator'
Socket = require 'nodulator-socket'
Nodulator.Use Socket
Nodulator.Run()
It adds Nodulator.Socket()
function that you can extend
This interface provides 2 methods to override :
@OnConnect(socket)
@OnDisconnect(socket)
Nodulator = require 'nodulator'
class Socket extends Nodulator.Socket()
OnConnect: (socket) ->
console.log 'Socket connected: ', socket
Socket.Init()
module.exports = Socket
Each time a Resource
is initialized, it create a new room and place each new connecting sockets into it.
Then it listen for every Resource
events (new_{resource_name}, update_{resource_name}, delete_{resource_name}) and broadcast theses to the attached room (and so to each sockets)
(See Nodulator Bus)
See Nodulator's project generation
When calling $> Nodulator init
, it will automaticaly create following structure if non-existant:
server
└─ sockets
└─ index.coffee
The index.coffee
file is a pre-extended Nodulator.Socket()
class
02/01/15: v0.0.2
30/12/14: v0.0.1
FAQs
Nodulator-Socket
The npm package nodulator-socket receives a total of 0 weekly downloads. As such, nodulator-socket popularity was classified as not popular.
We found that nodulator-socket demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.