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
This would make code which relies on RegisterOptions/SubscribeOptions much more readable, since it keeps the annotations inline instead of requiring a fallback to onJoin callbacks.
The text was updated successfully, but these errors were encountered:
Although not nearly as general as the above, it's possible to set the options for all@register methods in your class by passing an options= arg like self.register(self, options=...) when you do the registration.
The
@subscribe
and@register
decorators should accept the same options as the corresponding methods inApplicationSession
, e.g.:Perhaps even:
@register('foo', details_arg='bar', discloseCaller=True)
This would make code which relies on
RegisterOptions
/SubscribeOptions
much more readable, since it keeps the annotations inline instead of requiring a fallback toonJoin
callbacks.The text was updated successfully, but these errors were encountered: