soernt / signalr_client

A Flutter SignalR Client for ASP.NET Core
MIT License
131 stars 203 forks source link

How can send data into server using signalr_client flutter #2

Closed Adilkp796 closed 5 years ago

Adilkp796 commented 5 years ago

I need send data to server either headers or query string ....

soernt commented 5 years ago

Have a look at this StackOverflow item.

There is currently no way to somehow configure this. You need to subclass and adjust the client transport implementations. I guess this will be possible for LongPollingTransport and ServerSentEvents and not for WebSockets.

Adilkp796 commented 5 years ago

Thanks for your support @soernt .Finally I resolve my issue by passing query string like this http:192.168.0.100/Chat?tmz=330. And i get by calling context.Request.Query["tmz"].

soernt commented 5 years ago

aha - Ok, I thought you need to pass also the chat data via headers/query string.