autobahn-js icon indicating copy to clipboard operation
autobahn-js copied to clipboard

Pass all message details to subscription event handler

Open jbtbnl opened this issue 8 years ago • 2 comments

Using publisher disclosure with Thruway as server is challenging because not all message details are passed to the subscription event handler.

The Event object discloses a limited set of details to the event handler, but hides all (other) non-standard details. Therefore, the details authid and authrole as disclosed by Thruway are inaccessible in the event handler.

jbtbnl avatar Jul 21 '16 13:07 jbtbnl

See https://github.com/wamp-proto/wamp-proto/issues/57

oberstet avatar Jul 23 '16 10:07 oberstet

hides all (other) non-standard details

Custom (non-standard) attributes must start with x_ .. so the bug is not exposing all these, but not eg authroles which Thruway uses. That should probably be x_tw_authroles or something.

For example, Crossbar.io uses x_cb_node_id in the WELCOME message.

oberstet avatar Jul 23 '16 10:07 oberstet