Error when using multiplex.py in the multiplex example #30

Closed
lchan752 opened this Issue Nov 9, 2012 · 1 comment

Projects

None yet

2 participants

@lchan752
lchan752 commented Nov 9, 2012

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

File "/path/to/my/sockjs_server.py", line 11, in on_message
self.send(msg)
File "/path/to/my/python/lib/python2.7/site-packages/sockjs/tornado/conn.py", 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 multiplex.py
def send_message(self, msg, binary=False): <-- I added binary=False in the argument list.
self.base.send('msg,' + self.name + ',' + msg, binary)

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

Thanks,
Leo

@mrjoes
Owner
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