Hello, I have a question about using the WebSocket variable in ws-client.js
in the ‘init’ function of ws-client.js, we call new WebSocket(url)
I guess this is the same variable we defined in chattrbox/websockets-server.js
but we didn’t need to import this variable defined in another file (module?)
How does the code in our chattrbox/app/scripts/src/ws-client.js know about the WebSocket variable defined elsewhere?
Thanks, hope this makes sense.