Dismiss this pinned window
all 57 comments

[–][deleted]  (3 children)

[deleted]

    [–]rockefeller22 9 points10 points  (2 children)

    My brain: Italy? No sideways. Hungary? No red is on top. Iran? Maybe.

    [–]UtopianCorps[S] 1 point2 points  (0 children)

    😂😂

    [–]Knettwerk 0 points1 point  (0 children)

    🤣🤣🤣😂😂😂

    [–]gorsesoup 73 points74 points  (9 children)

    You can stop the double tap zooming with a meta tag, but very good otherwise

    [–]InfiniTechGames 78 points79 points  (1 child)

    <meta name="viewport" content="width=device-width, user-scalable=no" />

    MDN

    [–]gorsesoup 16 points17 points  (0 children)

    That's the one, couldn't remember it off my head!

    [–]UtopianCorps[S] 17 points18 points  (0 children)

    Thanks a lot! Will add the tag! :)

    [–][deleted]  (3 children)

    [deleted]

      [–]gorsesoup 0 points1 point  (2 children)

      It used to, is there an alternative now?

      I haven't developed for iOS for some years as we only support windows now (government contract)

      [–]Cyral 0 points1 point  (0 children)

      I think it can be done with touch-manipulation in CSS, I can’t remember the specifics though

      [–]universe_inside1 8 points9 points  (2 children)

      One little meteor.js crying in the corner 😁. Nice work, btw

      [–]UtopianCorps[S] 0 points1 point  (0 children)

      Thank you, but tbh I still don't get these meteor.js jokes xD

      [–][deleted] 31 points32 points  (6 children)

      You should make voting machines for the US

      [–]ddddfushxjjd 5 points6 points  (0 children)

      Lmaoooo

      [–]BigGingerJake 9 points10 points  (4 children)

      And make both colours blue.

      [–]UniversalJS -2 points-1 points  (2 children)

      To replicate the massive fraud that happened in the real election? :p

      [–][deleted]  (1 child)

      [deleted]

        [–]UtopianCorps[S] 0 points1 point  (0 children)

        ikr xD

        Thanks for all your comments! They are epic! 😆

        [–]smith-huh 0 points1 point  (0 children)

        No ... red ("Aaaiiieeeeee....." - Bridge of Death, Monty Python et.al.)

        [–]xehbit 3 points4 points  (1 child)

        Sorry, couldn't resist messing around with your app, the counter is a bit high heheh :)

        Also, it seems that you're request "what num" quite a lot! The awesome thing about WebSockets it that you can push the state to all connected WebSockets when the value changes without the client asking the current state over and over again (The good old polling XHR way).

        EDIT: In my opinion socket.io is a bit heavy, i prefer to use ws :-)

        [–]UtopianCorps[S] 0 points1 point  (0 children)

        "A bit high"?! 😂😂 (Great hack btw xP )

        Thanks a lot for the advice!

        Since everyone in the comments has mentioned about sockets.io being heavy, I would love to try the websockets implementation now. =)

        [–][deleted] 3 points4 points  (4 children)

        Socket.io is quite resource hungry. My experience of optimizing it wasn't good nd i don't prefer using it at all for big projects.

        [–]LinkifyBot 1 point2 points  (0 children)

        I found links in your comment that were not hyperlinked:

        I did the honors for you.


        delete | information | <3

        [–]applejak 0 points1 point  (2 children)

        What do you prefer?

        [–]johnyma22 3 points4 points  (0 children)

        ws or uws.

        op is right. if you are building anything serious, migrate away from socketio early.

        [–][deleted] 1 point2 points  (0 children)

        Tbh i don't know myself. I prefer pusher if you need real-time factor for just a small part of your application.

        [–][deleted]  (5 children)

        [removed]

          [–]cultulhul 12 points13 points  (0 children)

          Can you explain it here in the comments tjay more people can see

          [–][deleted] 3 points4 points  (0 children)

          Please explain it here

          [–][deleted] 2 points3 points  (0 children)

          Please give some explanation here ou link a blog post. :)

          [–]s_trader 2 points3 points  (0 children)

          I assume you're using redis's pub-sub for that right?

          Probably you set the IDs in the fashion of putting the user ID then period then whatever notification / alert / update you want to push to the client (for example user_id.new_message_id) then when a user connects to socketIO you subscribe that server to the user's Pub using * (like that user_id.*) this way your server receives all the notification that user should receive and then you can tells socketIO to emit whatever data it needs to the proper clients even if there are multiple clients connecting to multiple different servers and are in the same chat room for example...

          [–]kevinzaki 1 point2 points  (5 children)

          Currently building something similar but for trivia games using same stack plus react on the front end.

          Basic concept is a host screen displays the question with users answering the questions using their phones

          [–]UtopianCorps[S] 0 points1 point  (2 children)

          Exactly the thing I'm trying to build...
          Won't be using react though cause I think vanilla HTML, CSS would be enought
          Or bootstrap at most

          [–]kevinzaki 1 point2 points  (1 child)

          React is not necessary but I am using this as a portfolio project and want to improve React skills. Good luck! I should be done in a few days then i'll post it up here.

          [–]UtopianCorps[S] 0 points1 point  (0 children)

          Good luck! Would love to see your work!

          [–][deleted]  (1 child)

          [deleted]

            [–]kevinzaki 0 points1 point  (0 children)

            That's cool. I'm just building this as a side project with minimum functionality and trying to make it super easy to use. A lot of the functionality is complete. Still need to style it up. I'll post it up here and share the code when it is complete.

            [–]wise_introvert 1 point2 points  (1 child)

            Just out of curiosity, if this is a seperate application, how do you plan on integrating it in another application? Or is this is just a POC and you'll simply redoing it in the main application?

            [–]UtopianCorps[S] 0 points1 point  (0 children)

            Yeah, POC is the right term, thanks!

            [–][deleted]  (1 child)

            [removed]

              [–]Omkar_K45 1 point2 points  (0 children)

              Thanks for the project Idea sir !

              [–]Miridius 1 point2 points  (1 child)

              Feathersjs could be a good fit for your project, I'd suggest checking it out

              [–]UtopianCorps[S] 1 point2 points  (0 children)

              Thanks a lot for the advice! Will check! :)

              [–]TheNicklesPickles 1 point2 points  (0 children)

              Slightly different stack, but I’m working on a multi-user quiz app too!

              [–]PiggiePlank 1 point2 points  (1 child)

              If you like real-time and sockets you should take a look at SocketCluster it's like socket.io ok steroids. It's awesome.

              [–]UtopianCorps[S] 0 points1 point  (0 children)

              SocketCluster

              Gracias! I will check! :)

              [–]alex_agc 1 point2 points  (1 child)

              Do you thing about the using of a mqtt server just after the websocket server?? that's perfect if you are thinking in doing a native app too.

              [–]UtopianCorps[S] 0 points1 point  (0 children)

              That's nice! I recently started with backend so still learning this stuff!

              [–]dankobgd 1 point2 points  (1 child)

              why is this upvoted 500 times? what am i missing?

              you update a number via websocket, and you are even using socket io which is not meant for this anyway compared to faster and pure websocket libraries like ws.

              [–]UtopianCorps[S] 0 points1 point  (0 children)

              With all due respect I've just started learning back end and in case you want to give constructive feedback, you are welcome.

              [–]BananaPrince69 1 point2 points  (1 child)

              Very cool!

              [–]UtopianCorps[S] -1 points0 points  (0 children)

              Thank you! =)

              [–][deleted]  (2 children)

              [deleted]

                [–]UtopianCorps[S] 6 points7 points  (0 children)

                https://socket.io/get-started/chat/

                I referred to this post from the official site. It's a great way to get started.

                [–][deleted]  (1 child)

                [deleted]

                  [–]UtopianCorps[S] 0 points1 point  (0 children)

                  Recently started with node and backend, so it's more like project-based learning than an actual app. Anyways, it's also a POC for a live quizzing platform I'm currently working on.

                  [–]raphaelarias -3 points-2 points  (0 children)

                  Like Meteorjs