from functions import print_message
from osbrain.core import Proxy


pusher = Proxy('Pusher')
puller = Proxy('Puller')

addr = pusher.bind('push')
puller.connect(addr, print_message)

puller.run()
pusher.send(addr, 'Hello world!')

from functions import print_message
from osbrain.core import Proxy


pusher = Proxy('Pusher')
puller = Proxy('Puller')

addr = pusher.bind('PUSH', alias='push')
puller.connect(addr, handler=print_message)

puller.run()
pusher.send('push', 'Hello, world!')

Update push_pull example to work with latest changes
Update push_pull example to work with latest changes

  from functions import print_message
  from osbrain.core import Proxy
  
  
  pusher = Proxy('Pusher')
  puller = Proxy('Puller')
  
- addr = pusher.bind('push')
+ addr = pusher.bind('PUSH', alias='push')
- puller.connect(addr, print_message)
+ puller.connect(addr, handler=print_message)
  
  puller.run()
- pusher.send(addr, 'Hello world!')
+ pusher.send('push', 'Hello, world!')
  
Update push_pull example to work with latest changes
## Code Before:
from functions import print_message
from osbrain.core import Proxy


pusher = Proxy('Pusher')
puller = Proxy('Puller')

addr = pusher.bind('push')
puller.connect(addr, print_message)

puller.run()
pusher.send(addr, 'Hello world!')

## Instruction:
Update push_pull example to work with latest changes
## Code After:
from functions import print_message
from osbrain.core import Proxy


pusher = Proxy('Pusher')
puller = Proxy('Puller')

addr = pusher.bind('PUSH', alias='push')
puller.connect(addr, handler=print_message)

puller.run()
pusher.send('push', 'Hello, world!')
