Failed to construct 'WebSocket': The URL '[object Object]' is invalid
问题 I was trying to make a connection to the websocket and get the data in react router. The connection is not happening and getting error Uncaught SyntaxError: Failed to construct 'WebSocket': The URL '[object Object]' is invalid. in the browser console. Using npm start from the terminal to start the application. It is a simple react router application. Below is the react code where I think problem occurred. import React from 'react' export default React.createClass({ getInitialState: function()