Closed cyrushine closed 3 years ago
thanks for contributing!
rgd custom (implementation defined, rather than official protocol defined) attributes: the library should only accept attribute names x_*
for custom attributes .. this isn't yet in the spec, but consensus https://github.com/wamp-proto/wamp-proto/issues/345 and also how (at least) some implementations handle this already .. yeah, sorry, we should really land this in the spec text.
👌
@om26er what do you think rgd the PR? good to merge? in general, the AB libraries should allow users to use custom attributes in "options". such custom options must have attribute names starting with "x_". other attribute names must be from the list of officially supported (eg "excludeauthroles" or similar). do we want to check/enforce that in the ABPy client side library? eg Crossbar.io will kill a session that uses non-standard attribute names that do not start with "x" - but we certainly could add such checks later in a subsequent change (as this PR doesn't protect from using illegal names ..)
Yep, looks good to me. We can add the protection for illegal names later.