A complete SignalR Client including stateful reconnect in dart. You will feel right at home while using this library because APIs are kept as similar as possible.

I know that there are a lot of other SignalR clients in dart but either they have problems because they don't follow SignalR client code flow in the first place or they have been discontinued or not been maintained. You can verify by comparing repositories against SignalR C# client repository.

All platforms are supported. Tested on windows and browsers

Supported transports:

  • WebSocket
  • ServerSentEvents (SSE)
  • Long Polling

Supported hub protocols:

  • Json
  • Message Pack (SSE does not support) (Use this package to be able work with Message Pack)

You can find full examples here folder. There is also a test server provided here

TODOs:

  • Http2
  • Proxy
  • Implementing server side (not anytime soon)

Libraries

signalr_dart