heroiclabs / nakama-dart

Pure Dart Client for Nakama Server
https://heroiclabs.com/docs/nakama/client-libraries/dart
166 stars 51 forks source link

After send data in socket method dart stops executing next method lines #77

Closed taciomedeiros closed 9 months ago

taciomedeiros commented 10 months ago

Describe the bug After send data to socket systems stop executing method lines without throws any error

Reproduction Code

Example:

Future<void> sendData() async {

 print('befor send data');
    await socket!.sendMatchData(
      matchId: match.matchId,
      opCode: Int64(data.opCode),
      data: jsonEncode({}).codeUnits,
    );

    print("after send data");

Expected behavior print("after send data"); should be called

Screenshots

Captura de Tela 2023-11-19 às 14 30 18

Flutter Doctor

pubspec.yaml

Additional context

obrunsmann commented 9 months ago

There is no data returned from sendMatchData - so changed return type to void. Thanks for reporting.