This is a migrated thread and some comments may be shown as answers.

appbuilder and signalr 2.1.1

1 Answer 80 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dave
Top achievements
Rank 1
Dave asked on 17 Dec 2014, 09:14 PM
Just running some demo code found here (http://demos.telerik.com/kendo-ui/grid/signalr) using jquery.signalR-2.1.1.min.js versus the original demo code's  jquery.signalr-1.1.3.min.js.  After creating a backend service using signalR-2.1.1 which includes a Read() method...   the app builds in the Simulator but any attempts to populate a kendoGrid with data fails with this error:

XMLHttpRequest cannot load http://myDomain.com/signalr/hubs/negotiate?clientProtocol=1.4&connectionData=%5B%7B%22name%22%3A%22chathub%22%7D%5D&_=1418850041003. Credentials flag is 'true', but the 'Access-Control-Allow-Credentials' header is ''. It must be 'true' to allow credentials.  
... and the Grid fails to render the records.

Meanwhile a deployed app to both Android and Ipad tablets do render the Grid with data.  However, none of the SignalR goodness is as expected.   Do you have any example(s) using this or later versions of SignalR or have a workaround for debugging using the Simulator?

Cheers

1 Answer, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 22 Dec 2014, 01:04 PM
Hi Dave,

Thank you for posting to the Telerik Developer Forums.

1. Regarding the "XMLHttpRequest cannot load..." error. If you are using the AppBuilder Web client, this is a CORS-related problem. You can workaround the issue by running the app on a device or by using the AppBuilder Desktop client or the VS Extension.

2. Could you please be more specific which functionality is not working as expected? Is the expected functionality available only in SignalR v. 2.1.1? Could you elaborate on your implementation and the expected behavior?

Please, explore this blog post along with the sample code in the GitHub repository, it uses a higher version of SignalR.

In addition, the documentation about the data source configuration for working with a SignalR hub could be helpful. Also note the push event of the data source which is called when a notification from the hub is received and the transport.push configuration used to supply the callbacks for the notification events.

I look forward to your reply.

Regards,
Anton Dobrev
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
Dave
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Share this question
or