Jump to content
Mumble forums

Help with ruby callbacks (Ice & Murmur)


Recommended Posts


I'm somewhat new at coding but my goal is to let ruby do some stuff when something specific happens on the server (e.g. a user joined)

I could query all users every x seconds like


but i would rather use callbacks (like this).

For simplicity I tried to get the meta callback working (server starts/stops) but I even failed that 'simple' task. :(

I mostly used this python code as guidance but I can't seem to 'translate' the following code to ruby:


class MetaCallbackI(Murmur.MetaCallback):
   def started(self, s, current=None):
       print "started"

   def stopped(self, s, current=None):
       print "stopped"

adapter = ice.createObjectAdapterWithEndpoints("Callback.Client", "tcp -h")
metaR = Murmur.MetaCallbackPrx.uncheckedCast(adapter.addWithUUID(MetaCallbackI()))


I googled a lot the past week but I'm at my wit's end at how to implement even the adapter. :|

Any help on how to do it in ruby would be greatly appreciated. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...