javascript - onopen not responding in angular websocket -


i'm new websockets , i'm trying server respond when opening app in browser, connection.onopen not responding expected. can provide.

angular.module('app') .run(function ($rootscope) {     var url = 'ws://localhost:3000'     var connection = new websocket(url)      connection.onopen = function () {         console.log('websocket connected')     } }) 


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -