Hello! I have the following problem:
On the server side I have defined a hub method -> Subscribe(long[] ids)
I wanted to call this method with hub_connection.send("Subscribe", [2312, 12312])
But json transforming the decimal value automatically into strings, so I defined a new method with Subscribe1(string[] ids) and calling it with hub_connection.send("Subscribe", ["2312", "12312"]) but again the it says: InvalidDataException: Error binding arguments. Make sure that the types of the provided values match the types of the hub method being invoked
Do you have any Ideas?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello! I have the following problem:
On the server side I have defined a hub method -> Subscribe(long[] ids)
I wanted to call this method with hub_connection.send("Subscribe", [2312, 12312])
But json transforming the decimal value automatically into strings, so I defined a new method with Subscribe1(string[] ids) and calling it with hub_connection.send("Subscribe", ["2312", "12312"]) but again the it says: InvalidDataException: Error binding arguments. Make sure that the types of the provided values match the types of the hub method being invoked
Do you have any Ideas?