Ok so i am currently working on a prototype that is evaluating multiple embedded browsers that will be hosted in a WPF application. I have currently tried Awesonium, CEFSharp, and the native WebBrowser control for WPF. I am also currently using Signalr for communication purposes between the server, web page, and WPF application. During my testing i noticed that Awesonium and CEFSharp will send a message through signalr to the Hub rather quickly(sub second for sure).
When i run the native WPF WebBrowser control there is at least a 3 to 4 second lag before the message reaches the Hub. I am currently using windows 7 and i have IE 11 installed.
My co-worker is using windows 8 and does not have the lag when he runs the application. We have set the meta tag:
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
We have also tried the Registry hack provided by: http://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version
I have the client set to use long-polling transport for consistency. And the same page is being loaded for all browsers.
here is a snippet of the javascript:
var chat = $.connection.testHub;
$.connection.hub.start({ transport: 'longPolling' }).done(function () {
alert("Connected, transport = " + $.connection.hub.transport.name);
$('#AweMessage').click(function () {
alert("clicked");
chat.server.send('awesonium').done(function () {alert('done');});
});
$('#NativeMessage').click(function () {
alert("clicked");
chat.server.send('native').done(function () { alert('done'); });
});
$('#CEFmessage').click(function () {
alert("clicked");
chat.server.send('cef').done(function () { alert('done'); });
});
});
I am at a loss here. If anyone has any ideas I'm open to anything. Thanks!