so I\'m wondering how I could create a websocket listener that listens for an emitted event, which could then be used as a function decorator.