Skip to content

Add support for codec engine for sending message from worker to broker #9

@Shankar-khati

Description

@Shankar-khati

let client = socketClusterClient.create(connectOptions);

Here i don't see the way to add a codec engine where i can compress the message.

Problem:
I have added custom codec engine to compress data from client to worker and when worker sends that message to brokers it's again decompressed form which throws an error "Message is too large to process".

Solution:
We can provide option to add codec engine here:

let client = socketClusterClient.create(connectOptions);
So that we can send message from worker to broker in compressed form

we can provide coded engine option from here
https://github.com/SocketCluster/socketcluster/blob/7b1d97cbcd9d37ae51eb9305bbaedfac774622b8/app/server.js#L99-L113
@jondubois please let us know your thoughts on the same

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions