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') } })