Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on_match_data does not receive opcode #78

Open
ropoko opened this issue Jun 12, 2024 · 2 comments
Open

on_match_data does not receive opcode #78

ropoko opened this issue Jun 12, 2024 · 2 comments

Comments

@ropoko
Copy link

ropoko commented Jun 12, 2024

reposting this issue that I reported on the forum.

I get all the data from server, I just do not receive the opcode.

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
dispatcher.broadcast_message(opcode, nk.json_encode(data), nil, message.sender)

nothing too much crazy, since I can pass the opcode to the data payload, just reporting because it's how it is on the docs.

Copy link

linear bot commented Jun 12, 2024

@msesen
Copy link

msesen commented Jun 12, 2024

Hi @ropoko

I am running the latest versions of the Nakama server and the Nakama-Defold client, and I am able to receive the opcode on socket.on_match_data().

Can you log the value of the opcode before broadcasting the message. The opcode may be nil at origin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants