Happy !

MasashiUmezawa / VerStix

Project infos

License MIT
Tags pubsub, async messaging, remote messaging, vert.x
Creation date 2016-06-11
Website

Monticello registration

About VerStix

VerStix

Vert.x eventbus client written in Smalltalk.

Connect

eventBus := VsEventBus host: 'localhost' port: 7000.
eventBus connect.

Async send (one-to-one)

eventBus send: {'value'->'HELLO from Smalltalk'} to: 'echo'.

Async send with callback

eventBus send: {'value'-> Time now asString} to: 'echo' callback: [:data | data inspect].

Publish/Subscribe (one-to-many)

eventBus publish: {'value'-> Time now asString} to: 'echo'. "On image-A"
eventBus subscribe: 'echo' callback: [:msg | msg inspect]. "On image-A,B,C,D, etc"
eventBus unsubscribe: 'echo'.

Note that you can receive publish events from other images!