Skip to content

Really not sure what's wrong. Trying to send Match Data #80

Open
@goodiesohhi

Description

@goodiesohhi

trying to send match data with

local result = socket.match_data_send(matchid , opcodes.send_input, data)

this is being done in a coroutine with a connected socket.

No error, the server sees that the message is recieved like this

{"level":"debug","ts":"2024-07-10T17:18:31.705-0400","caller":"server/pipeline.go:65","msg":"Received *rtapi.Envelope_MatchDataSend message","uid":"2f1ac17d-b374-4aa2-85b1-34a73ee10af2","sid":"ea506ba6-3f01-11ef-b43b-e0e9830395f8","message":{"MatchDataSend":{"match_id":"89786132-d824-41e1-ad7d-820960662c7d.doomscroller","op_code":3,"data":"eyJ4IjoxLjA3MDY4ODAzMDE2MDIsInkiOjB9"}}}
I've tried both the lua and the typescript runtime, no dice. Essentially, the server receives the message but doesn't actually forward it to the match_loop handlers or anything. My only theory is that my match id is somehow wrong? I'm sending the same match_id that I save from the callback of the rpc that creates the match, its the same match_id as the one I use to successfully join. Then I try to send match data to that same match id, the server receives it but it never seems to make it to the match_loop. the messages table/object is literally empty. I have no idea what's causing this, can't find any similar issues and don't even know if this is something wrong with the client library or the runtimes or what I'm doing wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions