# Decode own protocol protobuf messages in JS client

**URL:** https://forum.heroiclabs.com/t/decode-own-protocol-protobuf-messages-in-js-client/2466
**Category:** Client Libraries
**Tags:** sdk-javascript
**Created:** [March 23, 2022, 11:02am UTC](https://forum.heroiclabs.com/t/decode-own-protocol-protobuf-messages-in-js-client/2466 "2022-03-23T11:02:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Marcin](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Marcin](https://forum.heroiclabs.com/u/Marcin)
#### Post date: [March 23, 2022, 11:02am UTC](https://forum.heroiclabs.com/t/decode-own-protocol-protobuf-messages-in-js-client/2466/1 "2022-03-23T11:02:39Z")

</div>

Hi guys,

We are using `nakama-js` with `nakama-js-protobuf` adapter because our protocol operate on protobuf.  
I have a question how to integrate our `.proto` files with websocket protobuf adapter. I see how to update nakama `.proto` files `api` and `rtapi`, but in this solution must create new package based on the existing one, is there any other/better way?

---

<div class="post-metadata">

### Author: ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)
#### Post date: [March 23, 2022, 1:06pm UTC](https://forum.heroiclabs.com/t/decode-own-protocol-protobuf-messages-in-js-client/2466/2 "2022-03-23T13:06:56Z")

</div>

This is not something that’s possible - the Nakama-protobuf library only works with Nakama API and that cannot be extended.

---

<div class="post-metadata">

### Author: ![Marcin](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Marcin](https://forum.heroiclabs.com/u/Marcin)
#### Post date: [March 23, 2022, 1:18pm UTC](https://forum.heroiclabs.com/t/decode-own-protocol-protobuf-messages-in-js-client/2466/3 "2022-03-23T13:18:28Z")

</div>

Thanks for your response.
