# Sdk-defold does not receive opcode on on\_match\_data

**URL:** <https://forum.heroiclabs.com/t/sdk-defold-does-not-receive-opcode-on-on-match-data/5326>\
**Category:** Client Libraries\
**Tags:** sdk-defold\
**Created:** [June 8, 2024, 8:46pm UTC](https://forum.heroiclabs.com/t/sdk-defold-does-not-receive-opcode-on-on-match-data/5326 "2024-06-08T20:46:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ropoko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ropoko/32/2141_2.png) [@ropoko](https://forum.heroiclabs.com/u/ropoko)\
**Post date:** [June 8, 2024, 8:46pm UTC](https://forum.heroiclabs.com/t/sdk-defold-does-not-receive-opcode-on-on-match-data/5326/1 "2024-06-08T20:46:03Z")

</div>

I get all data sent from the server, I just don’t get the opcode

my client code:

```lua
socket.on_match_data(Constants.SOCKET_CONNECTION, function(message)
	print('opcode', message.match_data.op_code) ---> nil
	print('match_data', json.encode(message.match_data))
end

```

server:

```lua
dispatcher.broadcast_message(opcode, nk.json_encode(data), nil, message.sender)

```

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [June 12, 2024, 11:49am UTC](https://forum.heroiclabs.com/t/sdk-defold-does-not-receive-opcode-on-on-match-data/5326/2 "2024-06-12T11:49:44Z")

</div>

Hello @ropoko,

Please open an issue at: [GitHub - heroiclabs/nakama-defold: Defold client for Nakama server.](https://github.com/heroiclabs/nakama-defold).

Best.
