
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
exocomm-mock
Advanced tools
A mock implementation of the ExoComm development server in JavaScript, for testing
a mock implementation of ExoComm-Dev for sending and receiving messages to your ExoServices in test
$ npm i --save-dev exocomm-mock
create an instance
ExoCommMock = require('exocomm-mock')
exocomm = new ExoCommMock
register a service to send messages to
exocomm.registerService name: 'users', port: 4001
send a message to the service
exocomm.sendMessage service: 'users', name: 'users.create', payload: { name: 'Jean-Luc Picard' }
verifying messages sent out by the service under test
# ... make your service sent out a request here via exocomm.sendMessage...
# wait for the message to arrive
exocomm.waitUntilReceive =>
# verify the received message
expect(exocomm.receivedMessages()).to.eql [
{
name: 'users.created'
payload:
name: 'Jean-Luc Picard'
}
]
if you want to verify more received messages later, you can reset the register of received messages so far
exocomm.reset()
finally, close your instance when you are done, so that you can create a fresh one for your next test
exocomm.close()
See our developer documentation
FAQs
A mock implementation of the ExoComm development server in JavaScript, for testing
We found that exocomm-mock 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
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.