lundi 8 juin 2015

connection between MVC SignalR server and mvc ember client

I'm a beginner in Asp.net SignalR and ember. I'm willing to make a connection between MVC SignalR server and mvc ember client. I have a Startup.cs class, a BundleConfig.cs class in App_start folder, control and model classes, a Hub.cs class, hub.js and app.js scripts. My question is how the connection between client and server happens.

For example in applications without ember client and with simple html and js codes, the connection between server and client starts by for example clicking a button in html code and the following .js code starts to send data to the server:

$.connection.hub.start().done(function () {
    $('#input').click(function () {
        sim.server.cell($('#getInput').val());
    });
});

I want to know how this connection between Hub.cs server and hub.js client can happen using mvc ember client?




Aucun commentaire:

Enregistrer un commentaire