Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Support sending "array" types for binary data #131

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions