Data [de]compression common to Client and Server/Uplink

Could this help? It was from a while ago…

I used this thread to get the hints to build the Example

I’ll take a quick look. Thanks for the clone!

Ah, @ianb, you’re using pako and jszip!

I’ll try to get into this on the weekend…

1 Like

Thanks! I’ll try it out later today

Hi @p.colbert ,

Here is a full example: Anvil | Login

On the client side, in get_data_click() function, data is a dictionary.
Also, the JS Pako library load is in Native Libraries now.

On the server side, you can change the compress_level:

level is an integer from 0 to 9 or -1 controlling the level of compression; 1 (Z_BEST_SPEED) is fastest and produces the least compression, 9 (Z_BEST_COMPRESSION) is slowest and produces the most.

Hope this helps :slight_smile:

1 Like