You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation page describing push-only servers has a code example with
server.addExtension({ ... });
but I believe 'server' refers to the bayeux server here, where in the other documentation pages the variable 'server' refers to the http server.
var server = http.createServer()
just for clarity, might be helpful to use the same variable names as the other pages.
The text was updated successfully, but these errors were encountered:
also for the push-only server example code, I had to change message.ext to message.data.ext
var password = message.data.ext && message.data.ext.password; if (password !== secret)
I dug a bit further and have to admit this was my misunderstanding of how the password should be added. When I was trying to add the password via the client.publish() arguments it was showing as a property under the message.data hierarchy. But now I've figured out the right way to add the secret is via child.addExtension(), and that way it can be added to message.ext
The documentation page describing push-only servers has a code example with
server.addExtension({ ... });
but I believe 'server' refers to the bayeux server here, where in the other documentation pages the variable 'server' refers to the http server.
var server = http.createServer()
just for clarity, might be helpful to use the same variable names as the other pages.
The text was updated successfully, but these errors were encountered: