Skip to content

Commit

Permalink
TRITON-2142 Add postgresql notification support to Moray (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
twhiteman authored Jun 18, 2020
1 parent dc1a769 commit 940cd73
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

None yet.

## v3.1.1

* Added fsr_context.removeSocketEndListener() method so that long running RPC
calls can remove their listener.

## v3.1.0

* Added fsr_context.addSocketEndListener() method so that long running RPC
Expand Down
4 changes: 4 additions & 0 deletions lib/fast_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,10 @@ function FastRpcServerRequest(args)
function ctxAddSocketEndListener(listener) {
request.fsr_conn.fc_socket.once('end', listener);
};
this.fsr_context.removeSocketEndListener =
function ctxRemoveSocketEndListener(listener) {
request.fsr_conn.fc_socket.removeListener('end', listener);
};
this.fsr_context.argv = function ctxArgv() {
/*
* For clarity and debuggability, callers ought to avoid mucking
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fast",
"description": "streaming JSON RPC over TCP",
"version": "3.1.0",
"version": "3.1.1",
"main": "./lib/fast.js",
"repository": {
"type": "git",
Expand Down

0 comments on commit 940cd73

Please sign in to comment.