Actually I realize you should also be able to do the following:
Code:
local libRpc = LibStub("LibRpc-0.2")
libRpc:RegisterRemoteEvent("Katator", "myEvent", somefunc)
-- don't do this, it will stomp the previous call
libRpc:RegisterRemoteEvent("Katator", "myEvent", someotherfunc)
-- instead do this
libRpc.RegisterRemoteEvent("some string id", "Katator", "myEvent", someotherfunc)
By using the dot notatation rather than libRpc:RegisterRemoteEvent you substitute "some string" or "some other string" for self as the index that LibRpc uses to index the callback. See the CallbackHandler-1.0 User API for more info. I should probably add a check to enforce this pattern if LibRpc is used non-embedded.
Connect With Us