# UI-Builder - max length uibuilder.send({})

**URL:** https://discourse.nodered.org/t/ui-builder-max-length-uibuilder-send/62876
**Category:** Dashboard
**Tags:** uibuilder
**Created:** [20 May 2022 07:55 UTC](https://discourse.nodered.org/t/ui-builder-max-length-uibuilder-send/62876 "2022-05-20T07:55:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![werkstrom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/werkstrom/32/41798_2.png) [@werkstrom](https://discourse.nodered.org/u/werkstrom)
#### Post date: [20 May 2022 07:55 UTC](https://discourse.nodered.org/t/ui-builder-max-length-uibuilder-send/62876/1 "2022-05-20T07:55:48Z")

</div>

Hi,

First: UI Builder is absolutely awesome 🤩 🥰 That being cleared I do have a question that I cannot find the answer for.

I'm trying to send very large objects/strings with uibuilder.send and there appears to be a maximum length. I haven't been able to find it and instead of guessing to find it I thought I'd ask:

1. Is this intentional?
2. If so, what's the limit?

I want to make clear, this is no deal breaker as it can be easily worked around, but if it is unintentional I'd better tell about it 😉

Thanks for the excellent node/work. Super fun to work with.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [20 May 2022 08:18 UTC](https://discourse.nodered.org/t/ui-builder-max-length-uibuilder-send/62876/2 "2022-05-20T08:18:39Z")

</div>

Hi Henrik, thanks for the praise, very welcome.

The limit on msg size is set by [Socket.IO](http://Socket.IO) which is the library that provides the websocket comms. I think that I do mention it somewhere, at least in one of the changelog entries, perhaps even in the example code for the uibuilder of settings.js.

One of the recent changes opened up the ability to pass options to [socket.io](http://socket.io) in settings.js and that is where you change the limit.

If you can't find the setting, let me know in this thread and I'll dig out the details.

---

<div class="post-metadata">

### Author: ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)
#### Post date: [20 May 2022 11:00 UTC](https://discourse.nodered.org/t/ui-builder-max-length-uibuilder-send/62876/3 "2022-05-20T11:00:52Z")

</div>

Sharing the link from the uibuilder v5 documentation that mentions about the setting you discussed

> **[uibuilder Technical Documentation v3](https://totallyinformation.github.io/node-red-contrib-uibuilder/#/uib-configuration?id=settingsjs)**
>
> uibuilder Technical Documentation

By editing the NR settings.js file and adding a uibuilder configuration

```auto
// socketOptions: {
        // // Make the default buffer larger (default=1MB)
        // maxHttpBufferSize: 1e8 // 100 MB
        // },

```

---

<div class="post-metadata">

### Author: ![werkstrom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/werkstrom/32/41798_2.png) [@werkstrom](https://discourse.nodered.org/u/werkstrom)
#### Post date: [20 May 2022 12:10 UTC](https://discourse.nodered.org/t/ui-builder-max-length-uibuilder-send/62876/4 "2022-05-20T12:10:38Z")

</div>

Thanks @TotallyInformation and @UnborN

~~However... It appears to make no difference, so I guess I might have actually put the text in the wrong place.~~ I put it at the very end of my settings.js file (in the/.node-red folder) I first tried to put it _outside_ the module.export = {} but that prevented NodeRed from even starting, so I put it inside that like everything else in settings.js and then NodeRed starts just fine ~~, but the settings does not appear to take effect...~~ Here's the very, very end of my (otherwise completely default settings.js

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/9/d9828511d04b0aba1feff70ef3e436dd2704fffa.png)

~~Perhaps you can spot some obvious error on my psrt (which I'm sure is the issue). Thanks again for your kind help.~~

EDIT:  
After checking in NR I could confirm the setting was loaded:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/c/cc0c76ae42686e9e19e55ba99a0a78c2b3a55a4c.png)

And... It now indeed works flawlessly. I guess perhaps something was cached and was eventually replaced. Anyway. It now works, so thanks a million both of you 👏 🥳

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [3 June 2022 12:10 UTC](https://discourse.nodered.org/t/ui-builder-max-length-uibuilder-send/62876/5 "2022-06-03T12:10:50Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
