Skip to content

Commit

Permalink
notify func
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 29, 2024
1 parent 7f1acb1 commit ec5d9b9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kong/clustering/rpc/socket.lua
Original file line number Diff line number Diff line change
Expand Up @@ -289,4 +289,16 @@ function _M:call(node_id, method, params, callback)
end


function _M:notify(node_id, method, params)
assert(node_id == self.node_id)

return self.outgoing:push({
jsonrpc = "2.0",
method = method,
params = params,
-- notification has no id
})
end


return _M

0 comments on commit ec5d9b9

Please sign in to comment.