0

For a real-time forum app I'm working on currently.

It takes about 1-5 seconds for the sockets on my node.js server to connect and deliver the first payload, which is some database results from mongo.

I want to do something while this is happening, since otherwise I get some angular {{ vars }} action going on, which is kinda unappealing and na-so-fresh.

So, I was wondering if anyone had any recommendations.

6
  • Upgrade to Websockets. Sep 29, 2016 at 23:58
  • I also learned that the ng-bind directive (shiz you put in the HTML tag) is equivalent to the angular {{ braces }} but has the added bonus of not showing unrendered content.
    – sova
    Sep 30, 2016 at 3:01
  • @RobertHarvey have you made anything using websockets? it looks very low level, which is nice in some ways, but might be something worth inspecting down the line for me after i have a working version of the app i'm making.
    – sova
    Sep 30, 2016 at 3:02
  • The guidance in the link I provided seems sensible. Sep 30, 2016 at 19:55
  • @RobertHarvey yeah, socket.io has a lot of stuff going on, but if you have not made something using WebSockets, it looks like the incidental complexity is pretty high. Seems like a performance upgrade for an elegance downgrade, and i'm a spoilt beeyatch and want both.
    – sova
    Sep 30, 2016 at 23:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.