AS-Devs / signalr_flutter

A flutter plugin for .net SignalR client.
https://pub.dev/packages/signalr_flutter
MIT License
18 stars 29 forks source link

signalr error during negotiation request - signalr_flutter #60

Open smithFlutter opened 8 months ago

smithFlutter commented 8 months ago

Hello everyone,

I am using the component: signalr_flutter, but when connecting to the server it gives me the error: "signalr error during negotiation request", I have seen that there is a way to skip the negotiation but I cannot find a way with this component, has this happened to anyone?.

Code: `Future initPlatformState() async { signalR = SignalR( "http://midireccion", "mipuerto", hubMethods: ["sendPushClient"], statusChangeCallback: _onStatusChange, transport: Transport.longPolling, hubCallback: _onNewMessage, ); }

void connectedServer() async { await signalr.connect(); //here error.... }

`

Thanks for the help :)