jquery - I want to use a websocket API with javascript -


my question how use websocket api. information company websocket api want use. don't understand completly. got js file , word document. devoloping in js want use websocket api realtime chart-data.

the path socket https://www.bittrex.com/signalr. connect generated proxy include following references in code:

<script src="scripts/jquery-1.10.2.min.js"></script> <script src="scripts/jquery.signalr-2.1.0.min.js"></script> <script src="signalr/hubs"></script> 

my first question signalr/hubs?

my second questions download signalr-2.1.0.min-js file here don't know if correct. becuase didn't find other files.

my 3 question when there app.js file document this:

<script src="assets/js/jquery-3.2.0.min.js"></script> <script src="assets/js/jquery.signalr-2.1.0.min.js"></script> <script src="assets/js/app.js"></script> 

i error's in console of browser:

uncaught typeerror: a.indexof not function     @ r.fn.init.r.fn.load (jquery-3.2.0.min.js:4)     @ jquery.signalr-2.1.0.min.js:11     @ jquery.signalr-2.1.0.min.js:11 app.js:3  uncaught referenceerror: require not defined         @ app.js:3 

this written @ line 3 of app.js:

var signalr = require("signalr-client"); 

does can explain need do?


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -