Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. WIP and Showcase
  3. Upcoming Socket.IO sneak peek

Upcoming Socket.IO sneak peek

Scheduled Pinned Locked Moved WIP and Showcase
28 Posts 7 Posters 12.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • HamedH Offline
    HamedH Offline
    Hamed
    Admin
    wrote on last edited by Hamed
    #1

    gfycat.com/ComposedShoddyAssassinbug

    Left side is a web browser, right side is the hyperPad app. What you're seeing here is a real time chat application!

    Took 10 behaviours to build it:

    One behaviour to create the socket, and another one to connect to it:
    connection

    Output the text to the server:
    emit

    And listen to chat message event from the server:
    event

    1 Reply Last reply
    1
    • HamedH Offline
      HamedH Offline
      Hamed
      Admin
      wrote on last edited by
      #2

      Thats unfortunate, the video got cut off. But the web browser types something and it immediately shows up in the app.

      1 Reply Last reply
      0
      • MurtazaM Offline
        MurtazaM Offline
        Murtaza
        Admin
        wrote on last edited by
        #3

        What a terrible gif. It kept me in suspense then resets before it's resolved. You should never be a movie director.

        Why didn't you just upload it to youtube or something?

        1 Reply Last reply
        0
        • HamedH Offline
          HamedH Offline
          Hamed
          Admin
          wrote on last edited by
          #4

          Don't yell at me

          1 Reply Last reply
          0
          • DGames135D Offline
            DGames135D Offline
            DGames135
            wrote on last edited by
            #5

            Soooooo can this be used to create multiplayer

            HamedH 1 Reply Last reply
            0
            • DGames135D DGames135

              Soooooo can this be used to create multiplayer

              HamedH Offline
              HamedH Offline
              Hamed
              Admin
              wrote on last edited by
              #6

              @DGames135 Yes

              DGames135D 1 Reply Last reply
              0
              • HamedH Hamed

                @DGames135 Yes

                DGames135D Offline
                DGames135D Offline
                DGames135
                wrote on last edited by
                #7

                @Hamed like online multiplayer between two iPads

                HamedH 1 Reply Last reply
                0
                • DGames135D DGames135

                  @Hamed like online multiplayer between two iPads

                  HamedH Offline
                  HamedH Offline
                  Hamed
                  Admin
                  wrote on last edited by
                  #8

                  @DGames135 Yes. You would create a server using socket.io, then you can connect two iPads.

                  DGames135D 1 Reply Last reply
                  0
                  • HamedH Hamed

                    @DGames135 Yes. You would create a server using socket.io, then you can connect two iPads.

                    DGames135D Offline
                    DGames135D Offline
                    DGames135
                    wrote on last edited by
                    #9

                    @Hamed OMG this will be the best Hyperpad update. When will this update comming? . Wait will this mean that when using the behaviour it will create a server???? 😍sorry so excited

                    MurtazaM 1 Reply Last reply
                    0
                    • DGames135D DGames135

                      @Hamed OMG this will be the best Hyperpad update. When will this update comming? . Wait will this mean that when using the behaviour it will create a server???? 😍sorry so excited

                      MurtazaM Offline
                      MurtazaM Offline
                      Murtaza
                      Admin
                      wrote on last edited by
                      #10

                      @DGames135
                      No you need to create your own server.

                      The left side with the web browser is the server/client side. The hyperPad app i simply connecting to his server.
                      See the "Socket" behaviour with the url: http://localhost:3000? That's where the connection is being made. The localhost is his server (it's using local host instead of a real IP or web address because it's a test server running on his own development machine).

                      His server is running code to handle the chat. That's where the real part of all this is located. The hyperPad behaviours simply connect to it and know how to respond.

                      This isn't an easy behaviour to use, and isn't for beginners. This is why we held off on adding it for so long, because I firmly believed our community was not ready. Even still, I doubt it will be used much.. But the community keeps asking for it, so we decided to make it happen. Hopefully some cool stuff comes from this.

                      1 Reply Last reply
                      0
                      • HamedH Offline
                        HamedH Offline
                        Hamed
                        Admin
                        wrote on last edited by Hamed
                        #11

                        That being said, the server was only 20 lines of code and was also super easy to setup. I just used the example they have on socket.io

                        I should also mention that all networking behaviors are on developer tier, similar to the open URL behavior.

                        Jack de WildeJ 1 Reply Last reply
                        0
                        • HamedH Hamed

                          That being said, the server was only 20 lines of code and was also super easy to setup. I just used the example they have on socket.io

                          I should also mention that all networking behaviors are on developer tier, similar to the open URL behavior.

                          Jack de WildeJ Offline
                          Jack de WildeJ Offline
                          Jack de Wilde
                          wrote on last edited by Jack8680
                          #12

                          @Hamed I see a get array value behaviour... is this a networking behaviour or an actual behaviour? I'm currently working on implementing A* pathfinding into a project, but if arrays are in the next update and don't need developer, I think I'll wait for that... also, does socket.io mean we can have direct player to player connections where one player hosts a server?

                          HamedH 1 Reply Last reply
                          0
                          • MurtazaM Offline
                            MurtazaM Offline
                            Murtaza
                            Admin
                            wrote on last edited by
                            #13

                            arrays are not a networking feature. they will be available to everyone in the next update :)

                            1 Reply Last reply
                            0
                            • Jack de WildeJ Jack de Wilde

                              @Hamed I see a get array value behaviour... is this a networking behaviour or an actual behaviour? I'm currently working on implementing A* pathfinding into a project, but if arrays are in the next update and don't need developer, I think I'll wait for that... also, does socket.io mean we can have direct player to player connections where one player hosts a server?

                              HamedH Offline
                              HamedH Offline
                              Hamed
                              Admin
                              wrote on last edited by
                              #14

                              @Jack8680

                              As well as dictionaries (basically attributes but as a standalone behavior)

                              There's also bunch of other cool new behaviors related to arrays. We'll update the roadmap later today with more details.

                              Jack de WildeJ 1 Reply Last reply
                              0
                              • HamedH Hamed

                                @Jack8680

                                As well as dictionaries (basically attributes but as a standalone behavior)

                                There's also bunch of other cool new behaviors related to arrays. We'll update the roadmap later today with more details.

                                Jack de WildeJ Offline
                                Jack de WildeJ Offline
                                Jack de Wilde
                                wrote on last edited by
                                #15

                                @Hamed by networking, do you mean you need a server for it or is it just a category for behaviours?

                                1 Reply Last reply
                                0
                                • MurtazaM Offline
                                  MurtazaM Offline
                                  Murtaza
                                  Admin
                                  wrote on last edited by
                                  #16

                                  Both. You need a server, and these are just a category (or subcategory) of networking behaviours.

                                  These "networking" related behaviours (Socket, and HTTP requests) will connect to any server outside of hyperpad. This means you need a server, and code running on that server to send/receive and compute data.

                                  We don't handle any of the server side stuff for you at all. That's on your end.

                                  Jack de WildeJ 1 Reply Last reply
                                  0
                                  • HamedH Offline
                                    HamedH Offline
                                    Hamed
                                    Admin
                                    wrote on last edited by
                                    #17

                                    Updated roadmap: https://trello.com/b/EmwcGN1T/road-map-and-known-bugs

                                    iTap DevelopmentI 2 Replies Last reply
                                    0
                                    • HamedH Hamed

                                      Updated roadmap: https://trello.com/b/EmwcGN1T/road-map-and-known-bugs

                                      iTap DevelopmentI Offline
                                      iTap DevelopmentI Offline
                                      iTap Development
                                      wrote on last edited by
                                      #18

                                      @Hamed wow I just looked at it...looks awesome!!!!!! When will it be out????!!!!!

                                      1 Reply Last reply
                                      0
                                      • MurtazaM Murtaza

                                        Both. You need a server, and these are just a category (or subcategory) of networking behaviours.

                                        These "networking" related behaviours (Socket, and HTTP requests) will connect to any server outside of hyperpad. This means you need a server, and code running on that server to send/receive and compute data.

                                        We don't handle any of the server side stuff for you at all. That's on your end.

                                        Jack de WildeJ Offline
                                        Jack de WildeJ Offline
                                        Jack de Wilde
                                        wrote on last edited by Jack8680
                                        #19

                                        @Murtaza never mind, I misread your previous post, I thought you said arrays ARE a networking behaviour but you said they AREN'T lol

                                        1 Reply Last reply
                                        0
                                        • HamedH Hamed

                                          Updated roadmap: https://trello.com/b/EmwcGN1T/road-map-and-known-bugs

                                          iTap DevelopmentI Offline
                                          iTap DevelopmentI Offline
                                          iTap Development
                                          wrote on last edited by
                                          #20

                                          @Hamed can an array be saved to file?

                                          MurtazaM 1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Search