Error when using in the multiplex example #30

lchan752 opened this Issue Nov 9, 2012 · 1 comment


None yet

2 participants

lchan752 commented Nov 9, 2012

I am having this error when self.send(msg) is called from server side.

File "/path/to/my/", line 11, in on_message
File "/path/to/my/python/lib/python2.7/site-packages/sockjs/tornado/", line 49, in send
self.session.send_message(message, binary=binary)
TypeError: send_message() got an unexpected keyword argument 'binary'

I got it to work by changing the example
def send_message(self, msg, binary=False): <-- I added binary=False in the argument list.
self.base.send('msg,' + + ',' + msg, binary)

Is this a bug? Or am I doing anything wrong?


mrjoes commented Nov 9, 2012

Thanks for report, that's a bug.

Just add binary=False and ignore it in your handler. I will push the fix.

@mrjoes mrjoes added a commit that closed this issue Nov 13, 2012
@mrjoes Fixed #30 ed3ce99
@mrjoes mrjoes closed this in ed3ce99 Nov 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment