Skip to content

[failed to connect socket, type 'Null' is not a subtype of type 'Object'] #423

@vikaspsolguruz

Description

@vikaspsolguruz

Getting lots of logs showing in my console

Future<void> start({void Function()? onConnect}) async {
   if(socket?.connected ?? false) return;
   socket?.connect();

   socket?.onConnectError((data) {
     xSocketPrint(['failed to connect socket', data]);
   });
}

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