### Navigation

- index
- modules |
- next |
- previous |
- Phatch 0.2 documentation »
- lib »

# events

The aim of this library is to abstract pubsub.

class `lib.events.``ReceiveListener`(obj, method)

class `lib.events.``Receiver`(name)
  `subscribe`(method)

    Subscribe with some class magic. Example: self.subscribe(‘error’) -> subscribe(‘frame.error’) Afterwars you can call it with send.frame_error()

  `unsubscribe`(method)

    Subscribe with some class magic. Example: self.subscribe(‘error’) -> subscribe(‘frame.error’)

  `unsubscribe_all`()

class `lib.events.``SendListener`(topic='')

class `lib.events.``Sender`

`lib.events.``example`()

`lib.events.``send`

`lib.events.``subscribe`(method, obj)

### Navigation

- index
- modules |
- next |
- previous |
- Phatch 0.2 documentation »
- lib »