Message not reaching session message handler

Hi,
I'm sending a message from a button to a Session-scoped message handler, but the handler never fires.

Button runAction:

def runAction(self, event):
    system.perspective.sendMessage(self.view.params.MessageHandler,payload={},scope=self.view.params.MessageHandlerScope)
	system.util.getLogger('button').info('message sent to |' + self.view.params.MessageHandlerScope + '| '+ '|' + self.view.params.MessageHandler + '|')

Console output:

message sent to |Session| |LeaveSession|

Session Event > Message: LeaveSession:

def handleMessage(session, payload):
	system.util.getLogger('handler').info('message received')

The button logs that the message was sent, but the handler's 'message received' log never appears. am i missing something?

Unless it's something new to me, your syntax should be:

system.perspective.sendMessage(
    self.view.params.MessageHandler,
    payload = {},
    scope = 'view'
)

I'm pretty sure the scope argument is case sensitive.