# No result is received when using socket.match\_data\_send(), although messages are received by the server

**URL:** <https://forum.heroiclabs.com/t/no-result-is-received-when-using-socket-match-data-send-although-messages-are-received-by-the-server/5340>\
**Category:** Client Libraries\
**Tags:** sdk-defold, lua\
**Created:** [June 10, 2024, 7:55pm UTC](https://forum.heroiclabs.com/t/no-result-is-received-when-using-socket-match-data-send-although-messages-are-received-by-the-server/5340 "2024-06-10T19:55:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SirCez](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@SirCez](https://forum.heroiclabs.com/u/SirCez)\
**Post date:** [June 10, 2024, 7:55pm UTC](https://forum.heroiclabs.com/t/no-result-is-received-when-using-socket-match-data-send-although-messages-are-received-by-the-server/5340/1 "2024-06-10T19:55:01Z")

</div>

I am having trouble receiving a response when sending match data from the client (Defold) to a Nakama Authoritative match.

I have created a fresh server using Docker desktop on Windows and followed the official guide. Added a basic match\_handler module, which I have got it from [Code Samples - Heroic Labs Documentation](https://heroiclabs.com/docs/nakama/server-framework/lua-runtime/code-samples/)

Unfortunately, I am unable to get a response when sending match data using socket.match\_data\_send(). The data is received by the server, gets added to the log and that’s it.

```auto
{"level":"debug","ts":"2024-06-10T18:44:20.577Z","caller":"server/pipeline.go:65","msg":"Received *rtapi.Envelope_MatchDataSend message","uid":"13cf1be7-f8b2-4cd2-8e82-c7ca6db52715","sid":"72ec902f-2759-11ef-8069-99837944f4bc","cid":"1","message":{"MatchDataSend":{"match_id":"f4e1fbdd-bda4-4880-a2e8-d1a8f0783178.nakama_1","op_code":10,"data":"WyJUZXN0IERhdGEiXQ=="}}}

```

- When _socket.match\_data\_send()_ is called from a coroutine, the data is successfully sent to the server but no response is returned.
- When _socket.match\_data\_send()_ is called using a callback function, the data is successfully sent to the server but the callback function is never invoked.
- The message was sent to a simple Authoritative match in Nakama server running in local development.
- I am able to receive messages from the server and listen for socket events e.g. socket.on\_error().

I have the following added as dependencies to the Defold project:

- github . com/heroiclabs/nakama-defold/archive/master.zip
- github . com/defold/extension-websocket/archive/3.0.0.zip

Nakama server runtime version: 3.22.0

I have tried this on 3 different computers with no luck. I am running out of ideas. What am I doing wrong? Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![SirCez](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@SirCez](https://forum.heroiclabs.com/u/SirCez)\
**Post date:** [June 12, 2024, 7:40am UTC](https://forum.heroiclabs.com/t/no-result-is-received-when-using-socket-match-data-send-although-messages-are-received-by-the-server/5340/2 "2024-06-12T07:40:02Z")

</div>

There is an active issue [here](https://github.com/heroiclabs/nakama-defold/issues/77) if you’d like to see what’s going on. Any input is appreciated.
