Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    Can I leverage socket.io via the API Builder or Page builder?

    Cloud Backend (Cloud DB, API Builder)
    4
    5
    430
    Loading More Posts
    • 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.
    • K
      Konrad Hylton last edited by

      Hey AppDrag Team,

      I'm interested in implementing a simple chat app where users on my webapp can talk to each other. Normally I would be using express.js and then I would just pass app into server and server into io.

      However, with appdrag it's not like I'm using express to handle my serve configurations so I don't really know how routes, paths and other server configurations are being handled behind the scenes.

      Is there any way to make a use socket.io to facilitate an online chat feature in my appdrag app? If not any advice on how I could implement some other solution for my online chat use case?

      1 Reply Last reply Reply Quote 0
      • Joseph Benguira
        Joseph Benguira last edited by

        Hey Konrad,

        Short answer:
        Not currently, but we are working on it 🙂

        Long answer:
        Currently we are using AWS Lambda serverless technology to execute at any scale ... but they don't directly support websockets, they do have an integration with API Gateway ... we have tested it and this solution do not meet our requirements in terms of latency. We are working on another approach for long lived process and websocket servers, we expect to have something available this summer.

        You can check our early publication of the open source core of this here:
        https://github.com/elestio/cloudgate

        You might be interested by this sample basic chat app:
        App definition: https://github.com/elestio/cloudgate/blob/master/apps/Websocket/appconfig.json
        Frontend: https://github.com/elestio/cloudgate/blob/master/apps/Websocket/public/wsChat.html
        Backend: https://github.com/elestio/cloudgate/blob/master/apps/Websocket/API/websocket/Chat.js

        You can run this right now on your computer or a VM, but this summer you will be able to create it & publish it to our serverless platform 🙂

        K Linda MacDonald 2 Replies Last reply Reply Quote 1
        • K
          Konrad Hylton @Joseph Benguira last edited by

          @Joseph-Benguira Thanks, Joseph! I'll look into those links and play around with them in the meanwhile.

          1 Reply Last reply Reply Quote 0
          • Daniel Mulroy
            Daniel Mulroy last edited by Daniel Mulroy

            Bumping this up, @Joseph-Benguira any progress on this? I'm starting to have use cases for socket.io piling up 🙂

            If not sockets.io, is something like this
            https://www.serverless.com/blog/realtime-updates-using-lambda-websockets-iot
            compatible with PageBuilder/CloudBackend?

            1 Reply Last reply Reply Quote 0
            • Linda MacDonald
              Linda MacDonald @Joseph Benguira last edited by

              @Joseph-Benguira your plans around cloudgate sound phenomenal ☺️ +1

              1 Reply Last reply Reply Quote 1
              • First post
                Last post