Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Nov 20, 2016
1 parent d92f9f0 commit e7d3149
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/ipc.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ function IPC () {
// Private methods
var write = (topic, data, socket, callback) => {

// Socket is optional
if ( typeof socket === "function") {
callback = socket;
socket = undefined;
}

var _sockets = socket ? [socket] : sockets;

try {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qbus-ipc",
"version": "0.9.4",
"version": "0.9.5",
"description": "Efficient and simple node.js TCP/unix socket/windows socket interprocess communication based upon qbus.",
"author": "Hexagon <github.com/hexagon>",
"scripts": {
Expand Down

0 comments on commit e7d3149

Please sign in to comment.