Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Shankar-khati opened this issue Aug 24, 2022 · 0 comments

Comments

@Shankar-khati
Copy link

Shankar-khati commented Aug 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant