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

rpc on websocket don't work #74

Open
Zhairgling opened this issue Sep 14, 2023 · 8 comments · May be fixed by #116
Open

rpc on websocket don't work #74

Zhairgling opened this issue Sep 14, 2023 · 8 comments · May be fixed by #116
Assignees
Labels

Comments

@Zhairgling
Copy link

Zhairgling commented Sep 14, 2023

Describe the bug
when I make a rpc call using websocket, I can see in the server log that I have the request and the nswer is sent but the flutter app never receive it.

Reproduction Code
Note: This is mandatory! If your issue does not contain it, it will be closed.

Example:

    final result1 = await socketClient.rpc(id: 'hello_world_rpc');


    print(result1.payload); // Devrait afficher "Hello, World!"
const helloWorldRpc: nkruntime.RpcFunction = function (ctx: nkruntime.Context, logger: nkruntime.Logger, nk: nkruntime.Nakama, payload: string): string {
  return "Hello, World!";
}

Expected behavior
see "hello world " in the flutter debugconsole

@obrunsmann obrunsmann self-assigned this Sep 23, 2023
@obrunsmann
Copy link
Contributor

Thank you @Zhairgling for reporting. I am just back from vacation and checking in your issue shortly.

@obrunsmann obrunsmann added the type: bug Something isn't working label Sep 23, 2023
@CodingTrip93
Copy link

Any update on this issue!?

@eunjijeon11
Copy link

Is there any update?

@ilmalte
Copy link
Collaborator

ilmalte commented Feb 20, 2024

Bump

@obrunsmann obrunsmann removed their assignment Mar 20, 2024
@ilmalte
Copy link
Collaborator

ilmalte commented Oct 22, 2024

This issue has been reported in an older version than the latest available on pub.dev, (1.1.0 released on the Mar 21).

Also, many improvements and bug fixes have been pushed to main since the version 1.1.0, and they will be released soon.
You might want to try to update your pubspec.yaml file to point directly to main for now:

dependencies:
  nakama:
    git:
      url: 'https://github.com/heroiclabs/nakama-dart.git'
      path: nakama

I am not certain if this will resolve the issue, so I will attempt to reproduce it and see if it needs further investigation.

@rephlex187
Copy link

Just ran into the same bug (1.1.0 from pub.dev). I'll try it tomorrow with the main branch and report back/eventually fix it.

@rephlex187
Copy link

Same behavior on the main branch, I'll dive into it.

@rephlex187
Copy link

Might refactor this library a bit in the near future to make use of some generics, but that PR should do for now.

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

Successfully merging a pull request may close this issue.

6 participants