Real-time Communication with Socket.IO in Ionic

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • In this video, you will learn how to use Socket.IO in Ionic Apps to communicate with other Apps in realtime.
    Check out the New Course "Intelligent Mobile Apps with Ionic and API.AI (now DialogFlow) on Udemy: www.udemy.com/...
    Best Seller on Udemy "Ionic 3 Apps for WooCommerce: Build an eCommerce Mobile App": www.udemy.com/...
    This course will teach you all about creating intelligent mobile apps that can understand your natural language and can take actions based on that. You can program your apps to do a number of tasks. From doing simple calculations to performing complex operations, your apps can d it all.
    Your apps will work on Android, iOS and Windows, thanks to the amazing Ionic Framework.
    So, you will be writing code once and you can generate different projects for Android, iOS and Windows.
    You will learn to use API.AI (now known as DialogFlow) and will use the amazing intelligence engine of API.AI to power your app. You app will depend on API.AI for processing the users' natural language (speech and text) and will respond back to the user in the way you want.
    Your app will be capable of understanding voice as well as text inputs. So a simple phrase like, "Hey, can you add 1265 and 6567?" will make your app do this calculation for you and it will come back with an answer. Not only that, your app will be capable enough to have conversations with you.
    It will respond to messages like, "How are you?" and "Where have you been?". By the end, your app will inform your of the weather for your city if you ask for it like, "How is the weather in New York City?". All thanks to API.AI.
    To proceed with this course you are recommended to have basic knowledge of building apps with Ionic and Angular. We will be using TypeScript all along to build the app, so knowledge of TypeScript is also advised. Even if you are complete beginner, you can take the course but you might feel the rush in the beginning. A basics course on Ionic Framework is advised for complete beginners.
    Here is an overview of the whole course.
    We will start by understanding a few basics of Ionic and then API.AI.
    We will then proceed to building the App UI and then integrate the App with API.AI. This will open doors to a whole new world of possibilities.
    We will learn how to add a feature to our API.AI Agent and use it in the app.
    We will implement voice recognition and text-to-speech in the app so the app can actually talk to the user.
    Then, we will add functionalities of a calculator to the app.
    Finally, we will conclude the app by hooking it up to a weather API so the app can provide the weather details for any city in the world.
    Sound exciting?

Комментарии • 13

  • @husamalhamadi9479
    @husamalhamadi9479 4 года назад

    Love it . Tanks.

  • @kantyDarius
    @kantyDarius 6 лет назад +1

    Love it! I have a similar web app combined with google maps to send location of users conected!!... Now will try wirh ionic, thanks!

  • @risty61
    @risty61 6 лет назад +1

    can you plz share the source code?

  • @andrearosati9931
    @andrearosati9931 6 лет назад

    thank you Samarth Agarwal, your explanation is clear, thank you for this tutorial.
    i try your tutorial and found a problem that i cant figure out.. first of all in cloud9 account.. when i clean the workspace and type 'npm init' the command dont work, and so no package.json file is created.
    to make it work i create a new workspace and clear all but package.json file. install the package of socket.io and than i create server.js file. i run 'node server' and it work, but the conosole says "info - socket.io started" and than "listening on port 8080".
    then when i run my app in the ionic lab
    in cloud9 console i got a lot of continus error messages like "info - unhandled socket.io url " while on the console of the apps i got an error of interpretation on a xml file in ...c9users.io/socket.io/?EIO=3&transport=polling&t=L-mEhOt
    can you help me??

  • @sourabhcareator3498
    @sourabhcareator3498 6 лет назад

    can you make video on file download and save into device in ionic

  • @leonlishenga
    @leonlishenga 6 лет назад

    i want the chat to be between only two people only NOT A GROUP CHAT. Who can help me ? Am in dire need of help

    • @chmoxster
      @chmoxster 6 лет назад +1

      you may use the socketID affected to each connection. Take a look here socket.io/docs/emit-cheatsheet/ and just use ```socket.to().emit('hey', 'I just met you');```

  • @barnabasnanna6845
    @barnabasnanna6845 6 лет назад

    fab video

  • @kasunsulochana2815
    @kasunsulochana2815 6 лет назад

    hi
    server connection working but message not received to the server

    • @youssefdahmanejdid7438
      @youssefdahmanejdid7438 5 лет назад

      var express = require('express');
      var app = express();
      var server = app.listen(3000);
      var io = require('socket.io').listen(server); ' change head to this in server'

  • @prakharmishra5581
    @prakharmishra5581 6 лет назад

    Hello,
    i wanted to ask is there a way to use socket io in php and if there is can you make a video in regards to it

    • @thesamarthagarwal
      @thesamarthagarwal  6 лет назад

      Hi, yes you can. Check out github.com/walkor/phpsocket.io. I am not a PHP dev, so I won't be doing a video on that. Thanks for watching my videos.

    • @kantyDarius
      @kantyDarius 6 лет назад

      I won't recommend use websocket with php is so ugly