Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
toomim committed Nov 13, 2024
2 parents aa4ef6e + ab502b6 commit 34961b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"dependencies": {
"bcrypt-nodejs": "0.0.3",
"braid-http": "^0.1.8",
"braid-http": "^1.0.7",
"chokidar": "^3.4.0",
"cookie": "^0.3.1",
"express": "^4.15.3",
Expand Down
4 changes: 2 additions & 2 deletions server-library.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@ function import_server (bus, make_statebus, options)
// console.log('http_in: doing cbus.get(', key, ')')

var send_to_client = (o, t) => {
// console.trace('http_in: Sending update of', key)
console.log('http_in: Sending update of', {key, o, res})
var body = to_http_body(o)

// Note: if body === undefined, we need to send the
// equivalent of a 404. This is missing in braid spec:
// https://github.com/braid-org/braid-spec/issues/110
res.sendVersion({body: body || 'null'})
res.sendUpdate({body: body || 'null'})

// And shut down the connection if there's no subscription
if (!req.subscribe)
Expand Down

0 comments on commit 34961b3

Please sign in to comment.