# gpgs.multiplayer.realtime.sendReliably problem

**URL:** <https://forums.solar2d.com/t/gpgs-multiplayer-realtime-sendreliably-problem/344734>\
**Category:** Game Networking\
**Created:** [July 13, 2017, 3:48am UTC](https://forums.solar2d.com/t/gpgs-multiplayer-realtime-sendreliably-problem/344734 "2017-07-13T03:48:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gyip](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/g/d2c977/32.png) [@gyip](https://forums.solar2d.com/u/gyip)\
**Post date:** [July 13, 2017, 3:48am UTC](https://forums.solar2d.com/t/gpgs-multiplayer-realtime-sendreliably-problem/344734/1 "2017-07-13T03:48:13Z")

</div>

Hi,

I was trying out the

[https://github.com/scottrules44/gpgsTicTacToe](https://github.com/scottrules44/gpgsTicTacToe)

on Android devices.

I was able to get 2 devices connected to each others. &nbsp;However, I was stuck at sendReliably

I believe the original code was using&nbsp;

```
gpgs.multiplayer.realtime.setListeners({message=dataHandle, room = handleRealtime})

```

I tried to print lines from dataHandle:

```
local function dataHandle( event ) print("--------------- dataHandle -----------------") print(json.encode(event)) print("------------------------------------------------") ... ... end

```

Nothing was printed.

I also try to set listener inside sendReliably() (according to the API document).

from:

```
gpgs.multiplayer.realtime.sendReliably({roomId = roomId, payload= tostring(myPlayerNum)})

```

to

```
gpgs.multiplayer.realtime.sendReliably({roomId = roomId, payload= tostring(myPlayerNum), listener=dataHandle})

```

Still, in logcat, nothing was printed from dataHandle.

Any help would be appreciated.

Thanks,

Gary

---

<div class="post-metadata">

**Author:** ![riku.kukkonen](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/r/e9a140/32.png) [@riku.kukkonen](https://forums.solar2d.com/u/riku.kukkonen)\
**Post date:** [October 31, 2017, 6:01pm UTC](https://forums.solar2d.com/t/gpgs-multiplayer-realtime-sendreliably-problem/344734/2 "2017-10-31T18:01:11Z")

</div>

Hello!

We are having the same problem and we used the same sample code as you. So did you find the solution, because we are also able to connect two devices but the sendReliably is not working?

---

<div class="post-metadata">

**Author:** ![riku.kukkonen](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/r/e9a140/32.png) [@riku.kukkonen](https://forums.solar2d.com/u/riku.kukkonen)\
**Post date:** [October 31, 2017, 6:01pm UTC](https://forums.solar2d.com/t/gpgs-multiplayer-realtime-sendreliably-problem/344734/3 "2017-10-31T18:01:11Z")

</div>

Hello!

We are having the same problem and we used the same sample code as you. So did you find the solution, because we are also able to connect two devices but the sendReliably is not working?
