Publish from event handler (no class)

The documentation seems to be moving towards using functional components and no classes (for example, the demo here shows this).

In previous versions of Python Autobahn it was possible to publish an event within a handler for another event (not just inside on_join, on_leave etc) via calling ApplicationSession.

Is this still possible via the functional way of use?