jquery - How to get simple XSocket.Net example up and running -


trying follow tutorials on how set simple sample application. error when running sample:

websocket connection 'ws://127.0.0.1:41589/generic' failed: unexpected response code: 404

not sure if it's project or if it's chrome failed.

created project: create new project dialog

runned in nuget: install-package xsockets

and added html file following code:

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>     <title></title>     <script src="scripts/jquery-1.9.1.js" type="text/javascript"></script>     <script type="text/javascript" src="scripts/xsockets.latest.js"></script>     <script>          $( document ).ready(function() {             var url = "ws://127.0.0.1:41589/";             var controller = "generic";              var ws = new xsockets.websocket(url + controller);              ws.subscribe(xsockets.events.open, function (connection) {                 console.log("this connection properties", connection);             });         });     </script> </head> <body>  </body> </html> 

but when watching console in chrome using ctrl + shift + j gives following message: error message in chrome

web project setting was: web tab in project settings

i think may port-number wrong. default port when have installed package should 4502.

to full sample up´n running can recommend sample packages xsockets.sample.stockticker websockets or xsockets.sample.webrtc video-chat

if in hurry xsockets.net questions can join the developer forum


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -