Skip to content

websocket send() can't write messages > kTxBufferSize (1024 bytes) #313

@dckc

Description

@dckc

websocket.js passes up to 64k of data to one call to socket.send(), but kTxBufferSize is only 1024 bytes, so I get:

modules/network/socket/lin/modSocket.c (761) # Exception: (host): can't write all data!

The docs say to use socket.send() with no args to get the amount of data that can be sent.

I guess I can bump up kTxBufferSize but websocket.js should break the data into pieces, no?

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