# mediasoup 3.13.0 released with FlatBuffers and more!

**URL:** <https://mediasoup.discourse.group/t/mediasoup-3-13-0-released-with-flatbuffers-and-more/5649>\
**Category:** Announcements\
**Created:** [November 8, 2023, 10:51am UTC](https://mediasoup.discourse.group/t/mediasoup-3-13-0-released-with-flatbuffers-and-more/5649 "2023-11-08T10:51:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [November 8, 2023, 10:51am UTC](https://mediasoup.discourse.group/t/mediasoup-3-13-0-released-with-flatbuffers-and-more/5649/1 "2023-11-08T10:51:08Z")

</div>

mediasoup 3.13.0 has been released. It replaces JSON based messages with [FlatBuffers](https://github.com/google/flatbuffers) in the internal communication between Node/Rust and Worker. And it also comes with new features! (see below).

### FlatBuffers

- Switch from JSON based messages to `flatbuffers` ([PR #1064](https://github.com/versatica/mediasoup/pull/1064)).

JSON vs FlatBuffers overview:

- JSON parsing is CPU intensive.
- JSON is not type safe.
- flatbuffers does not parse the buffer. Reading a message takes 0ms.
- flatbuffers is type safe since code (C++, Typescript, Rust, etc) is autogenerated out of the schema definitions.

Extras that come along with the migration to FlatBuffers:

- There is now a single Channel for worker communication (previously there were 2, Channel and PayloadChannel).
- Each message sent Node/Rust → Worker requires a single `write()` call in Channel (previously 2 calls per message were needed in Channel and 4 in PayloadChannel).
- Each message sent Worker → Node/Rust previously executed two extra calls to `memcpy()` that do not happen now.

### New Features

- Add `ListenInfo` in all transports and send/recv buffer size options ([PR #1084](https://github.com/versatica/mediasoup/pull/1084)).
- Add optional `rtcpListenInfo` in `PlainTransportOptions` ([PR #1099](https://github.com/versatica/mediasoup/pull/1099)).
- Add pause/resume API in `DataProducer` and `DataConsumer` ([PR #1104](https://github.com/versatica/mediasoup/pull/1104)).
- DataChannel subchannels feature ([PR #1152](https://github.com/versatica/mediasoup/pull/1152)).

### Fixes

- `Worker`: Make DTLS fragment stay within MTU size range ([PR #1156](https://github.com/versatica/mediasoup/pull/1156)).

### mediasoup-client 3.7.0

mediasoup-client 3.7.0 has been released. It doesn’t come with real changes other than some ones in TypeScript types to make it perfectly compatible with mediasoup 3.13.0.

---

<div class="post-metadata">

**Author:** ![sarumjanuch](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/sarumjanuch/32/1467_2.png) [@sarumjanuch](https://mediasoup.discourse.group/u/sarumjanuch)\
**Post date:** [November 9, 2023, 2:04am UTC](https://mediasoup.discourse.group/t/mediasoup-3-13-0-released-with-flatbuffers-and-more/5649/2 "2023-11-09T02:04:30Z")

</div>

Congratulations! This was a really big one! Thanks a lot for all your efforts guys!

---

<div class="post-metadata">

**Author:** ![pnts-se](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/pnts-se/32/2367_2.png) [@pnts-se](https://mediasoup.discourse.group/u/pnts-se)\
**Post date:** [November 10, 2023, 6:32am UTC](https://mediasoup.discourse.group/t/mediasoup-3-13-0-released-with-flatbuffers-and-more/5649/3 "2023-11-10T06:32:17Z")

</div>

Beautiful! 🎉

Thanks for all the hard work you’ve done, replacing JSON with FlatBuffers. Looking forward to start testing it!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mediasoup/original/2X/b/b318c4d3397e65af9535f79c605b80b9ceb066c8.png) [@system](https://mediasoup.discourse.group/u/system)\
**Post date:** [November 10, 2023, 10:52am UTC](https://mediasoup.discourse.group/t/mediasoup-3-13-0-released-with-flatbuffers-and-more/5649/4 "2023-11-10T10:52:06Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
