CodeIgniter 4 Real Time Chat App using WebSockets

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 105

  • @frikkievandermerwe
    @frikkievandermerwe 4 роки тому +4

    I just discovered your content and am LOVING IT!!! Well done! Best CodeIgniter 4 videos!

  • @Ylliwx3
    @Ylliwx3 3 роки тому +1

    Alex, thank you so much for your time. This video helped me a lot. Regards from the Dominican Republic. Keep moving forward.

  • @kennethkipchumba2532
    @kennethkipchumba2532 4 роки тому +2

    I can't help but wait to find time and implement this tutorial. Big thanks Alex for such amazing content.

  • @madie2659
    @madie2659 4 роки тому +3

    nice one alex i would binge watch all of your videos :)

  • @codetogether
    @codetogether 3 роки тому +1

    Thank you, Alex. I was surprised to find someone else in Athens used Codeigniter 😁😁 Hope to see you soon
    and nice topic Although I still find it difficult to enforce this realtime

  • @DanielZaponi
    @DanielZaponi 7 місяців тому

    Thank you so much for the great content!

  • @Auraprudenceap13
    @Auraprudenceap13 3 роки тому

    Kudos Alex..a very detailed tutorial.

  • @mikesaerial
    @mikesaerial 4 роки тому +2

    great tutorial alex.would you mind if you create another video in deploying this app on live server.preferably on digital ocean or cpanel.

    • @AlexLancer
      @AlexLancer  4 роки тому +2

      Great suggestion & thank you for the comment. Can't promise that I will do it, but I will note it down for consideration. Thanks again for watching the video.

  • @muhammadyasin2964
    @muhammadyasin2964 4 роки тому +2

    Great Job Alex, I have to develop chat module in our project. Can I create following your’s.. I hope it will work

    • @AlexLancer
      @AlexLancer  4 роки тому +2

      Yes, of course. Go for it and let me know how it goes. Great to hear that!!

  • @ronsn8071
    @ronsn8071 8 місяців тому

    Hey, first of all thanks for the tutorial.
    Regarding minute 39:13 of this video:
    No one in the comments seems to have noticed this vulnerability. You are using a user id as the GET parameter called "access_token" to establish a WebSocket connection. However, this compromises the purpose of authentication, as anyone can change the GET parameter and thus impersonate any user. The two servers (Apache & WebSocket server) should actually refer to the same session. Do you have a tutorial on this? :)

  • @abdallahabdedaiem51
    @abdallahabdedaiem51 3 роки тому +1

    Thanx for the channel content in general. In a real app I don't want a message to be sent to all connected users to web sockets server. Is there a method to store user id for exp with websocket client. How to handle this?? On server, How to run websocket server? in local setup I run it via command line.

  • @mehmetsarresmi
    @mehmetsarresmi 2 роки тому +1

    Hello Alex, thank you for the tutorial. Can I configure this as a whatsapp client?

  • @เป็ดหูหมี
    @เป็ดหูหมี 2 роки тому

    In ci4, how to close websocket, i trying $server->loop->stop(); error [An error has occurred: Trying to get property 'loop' of non-object] Can anyone recommend?

  • @codefixx
    @codefixx 11 місяців тому

    Hi
    I have a question please.
    Can not I create a chat where more than 2 person can join together? Is this support more than 2 person chat together?
    It would be very helpful if you reply me according this.
    Thank you

  • @hieuhiti
    @hieuhiti 3 роки тому

    @Alex Lancer, thanks your greate article. Why run via the command-line, same 20:04 , my terminal error ..system/Common.php on line 49. But I don't interfere Common.php file. Why error? Do you can help me??? Please.

  • @kajian_masjid_basen
    @kajian_masjid_basen 5 місяців тому

    there is no vendor folder on your github project, where can i find it ...?

  • @GoodSham
    @GoodSham 5 місяців тому

    Please how do I get the right-click Duplicate in my vs code explorer

  • @kohofishing
    @kohofishing 4 роки тому

    Thanks Alex.

  • @jeanjoelkapula5681
    @jeanjoelkapula5681 4 роки тому

    what would you recommend if you didnt't want to run the server file manually?

  • @Dilfera
    @Dilfera 3 роки тому

    hi! i have this error:
    Declaration of App\Filters\Noauth::before(CodeIgniter\HTTP\RequestInterface $request) must be compatible with CodeIgniter\Filters\FilterInterface::before(CodeIgniter\HTTP\RequestInterface $request, $arguments = null)

  • @GianGamingMLBB
    @GianGamingMLBB Рік тому +1

    I'm encountered this error when trying to clone and composer install, using php 8.2. can you help me with this?
    Fatal error: Uncaught Error: Call to a member function run() on int in /home/vagrant/code/ci4chat/public/index.php:45 Stack trace: #0 {main} thrown in /home/vagrant/code/ci4chat/public/index.php on line 45

  • @TheSpitamen
    @TheSpitamen Рік тому

    very good, thanks

  • @katarinagaming7963
    @katarinagaming7963 3 роки тому

    beautiful work.. i hope you can make socket in codeigniter3 😇😇😇

  • @AndrewKwabula
    @AndrewKwabula Рік тому

    After CI 3 stalled, I left Codeigniter for Laravel when CI 4 was in beta and it was clear 3 had ended. CI was the black sheep of the PHP frameworks. But now, I see that it has been embraced by many developers. Alex has a bunch of CI4 tutorials and so many others have developed content in CI4. As great as Laravel is, CI has its place because even in CI4, it is till the light framework it has been.

  • @davidm6370
    @davidm6370 4 роки тому

    sir, but your project folder look like a laravel, it is not like a codeigniter, the whole structure is not like a codeigniter i was confused can you, explain me about your application folder structure?

  • @codefixx
    @codefixx Рік тому

    Hi
    I really like your video.
    But How to create a group chat? like
    Group A members can chat with each other. Another group member can not see that chat.
    Group B members can also chat with each other. They can not see any chat of Group A.

  • @johnmahugu
    @johnmahugu 4 роки тому

    whatever the answer is please make it a yes :D hahaha got me clicking the subscribe button fast!

  • @faridulislam5944
    @faridulislam5944 4 роки тому

    I am getting this error. how can I solve this. please help me
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Nothing to install or update
    Generating autoload files
    Generated autoload files containing 582 classes
    > CodeIgniter\ComposerScripts::postUpdate
    > bash admin/setup.sh
    bash: admin/setup.sh: No such file or directory
    Script bash admin/setup.sh handling the post-update-cmd event returned with error code 127
    Installation failed, reverting ./composer.json to its original content.

  • @fabiojaramillo6765
    @fabiojaramillo6765 4 роки тому +1

    Can do the same width CI 3?

  • @aaronleet8190
    @aaronleet8190 4 роки тому +2

    For a second there i thought your OS was windows 😂

  • @dherendrachaudhary6728
    @dherendrachaudhary6728 3 роки тому

    can you make api for flutter using ci4 , mysql and websockets

  • @muhammadyasin2964
    @muhammadyasin2964 4 роки тому +1

    Hey Alex, its me again.
    I see this is some sort of chat room , can I manipulate it for chat between 2 users only and also our project is in code igniter 3 can I make it work in Code ignniter 3 as well ?.

    • @AlexLancer
      @AlexLancer  4 роки тому +1

      Hey Muhammad, of course it can be done. Anything can be done.
      But it is a completely different beast :)

    • @muhammadyasin2964
      @muhammadyasin2964 4 роки тому

      @@AlexLancer different in terms of one-one chat or code igniter version ?

    • @AlexLancer
      @AlexLancer  4 роки тому +1

      Both. But while Ci3 will just need some adjustments in compare to ci4, to make a one-to-one rooms might need a different approach. Just start creating the same example as mine but with ci3. and then you will understand what you will have to change to achieve your goal.

    • @muhammadyasin2964
      @muhammadyasin2964 4 роки тому +1

      @@AlexLancer Okay, thanks for replying to my queries. I see you prospering in UA-cam Tutorial Community.

    • @AlexLancer
      @AlexLancer  4 роки тому +1

      Trying my best, @Muhammad

  • @alexandrearaujobarbosa227
    @alexandrearaujobarbosa227 3 роки тому

    ErrorException #64
    Declaration of App\Filters\Noauth::after(CodeIgniter\HTTP\RequestInterface $request, CodeIgniter\HTTP\ResponseInterface $response) must be compatible with CodeIgniter\Filters\FilterInterface::after(CodeIgniter\HTTP\RequestInterface $request, CodeIgniter\HTTP\ResponseInterface $response, $arguments = NULL)

  • @DevidInsee
    @DevidInsee 3 роки тому

    very nice

  • @The.eminence
    @The.eminence 4 роки тому

    could do a tutorial using jquery ajax would be really good

  • @humanyu7
    @humanyu7 2 роки тому

    How to deploy this to ubuntu live server

  • @verdipratama
    @verdipratama 4 роки тому

    thank you so muchhhhh

  • @UvemweugmuhwemOsas
    @UvemweugmuhwemOsas 4 роки тому

    Excelent guys

  • @averled
    @averled 3 роки тому

    Can be used with CI3 ?

  • @johangunawan5758
    @johangunawan5758 4 роки тому

    Can i request for real time notification on codeigniter 4, Thank you

  • @danaharliansyah384
    @danaharliansyah384 4 роки тому +1

    Niceeeeeeee. How to create multi level user login?(ci4)

    • @AlexLancer
      @AlexLancer  4 роки тому +2

      What do you mean?
      Adding a 2-factor-authentication ?

    • @danaharliansyah384
      @danaharliansyah384 4 роки тому +1

      @@AlexLancer I mean how do I create a user login with a different menu access? such as employee menu access is different from boss menu access.
      * Boss level login.
      * employee level login.
      * cashier login level etc.
      (with codeigniter 4)
      Sorry, my english is bad..

    • @AlexLancer
      @AlexLancer  4 роки тому +2

      @@danaharliansyah384 Oh, i see, that's a completely different story. I might do a tutorial on that, because several subscribers already asked for it. But it will take some time because I am recording another series now.

    • @danaharliansyah384
      @danaharliansyah384 4 роки тому +1

      @@AlexLancer Oh, ok no problem. I have subscribed to your channel.
      I will wait for notifications from this channel.
      I like your tutorials

  • @cecironalejoiii7680
    @cecironalejoiii7680 4 роки тому

    Hello. Can i use this if i want to have notifications?

    • @AlexLancer
      @AlexLancer  4 роки тому +1

      Hi, Thirdy, You can use this, yes.

    • @cecironalejoiii7680
      @cecironalejoiii7680 4 роки тому

      @@AlexLancer can i use chat() for notifications? Because i don't get the other info in ratchet 😭

    • @AlexLancer
      @AlexLancer  4 роки тому

      @@cecironalejoiii7680 what is chat() ?

  • @sekolahdigitalku
    @sekolahdigitalku 3 роки тому

    It can deploy in shared host?

    • @AlexLancer
      @AlexLancer  3 роки тому

      check this video: ua-cam.com/video/k943H5OiIdE/v-deo.html

  • @manto7
    @manto7 4 роки тому

    Subscribed

  • @sandhusaab3675
    @sandhusaab3675 3 роки тому

    Please for codeigniter 3🙏🏻🙏🏻

  • @michailb2563
    @michailb2563 4 роки тому

    zoom when it is necessary please

  • @GodChessBible
    @GodChessBible 4 роки тому

    is the source code available?

    • @AlexLancer
      @AlexLancer  4 роки тому

      Hey, yes, check the description.

  • @javericablanca4084
    @javericablanca4084 4 роки тому +2

    😯😯😯😯

  • @ashishranjan47b
    @ashishranjan47b 4 роки тому

    where is data bade

  • @UniversbeCREATIONS
    @UniversbeCREATIONS 4 роки тому

    i am looking for file upload and download feature in chat but also not want to use react or angular because my half project is already completed without this. and i am building video conferencing web api. i already completed chat, screenshare, video config without react & angular. and also i am using node, socket, peerjs.
    my git here for ref :
    github.com/ttejas123/Video_Conf_Web_Api/tree/main

  • @mustafay.499
    @mustafay.499 2 роки тому

    50:18 $_GET ???

  • @adnanqadir291
    @adnanqadir291 2 роки тому

    WebSocket connection to 'ws://localhost:9090/' failed. I am getting this error. I tried changing the ports as well but didn't work. Please help me with this issue