Pregunta

I am writing small html websocket application. This html page works fine at IE window but if same page is tried to open using IWebBrowser2::Navigate then it throws an error "WebSocket is undefined" in standard java script error message box. Following is sample javascript code:

function myFunction()
{

    ws = new WebSocket("ws://" + "127.0.0.1"+ "8070" +"/" + "NSCOMString");
}

Could you please let me whether websocket is implemented inside the navigate method?

Regards, Anand Choubey

¿Fue útil?

Solución

The IWebBrowser2 control by default runs in compatibility mode, see this article on the IEBlog for details on how to circumvent this behavior.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top