hawkhero / pywebsocket

Automatically exported from code.google.com/p/pywebsocket
0 stars 0 forks source link

Support sending "array" types for binary data #131

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Construct an array using array.array()
2. Attempt to send it using request.ws_stream.send_message(message, binary=True)

Expected result:

Binary data is sent.

Actual result:

TypeError: web_socket_transfer_data raised exception for /flow-control-test: 
cannot concatenate 'str' and 'array.array' objects

Probably a TypeError would be appropriate if binary=False, but when binary=True 
this seems a natural way to send large binary objects.

Original issue reported on code.google.com by ri...@google.com on 10 Jul 2014 at 10:18

GoogleCodeExporter commented 9 years ago

Original comment by tyoshino@chromium.org on 10 Jul 2014 at 11:44