CodeIgniter 4 Real Time Chat App using WebSockets

Поделиться
HTML-код
  • Опубликовано: 10 янв 2025

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

  • @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 :)

  • @Auraprudenceap13
    @Auraprudenceap13 3 года назад

    Kudos Alex..a very detailed tutorial.

  • @DanielZaponi
    @DanielZaponi 9 месяцев назад

    Thank you so much for the great content!

  • @codetogether
    @codetogether 4 года назад +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

  • @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.

  • @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.

  • @ronsn8071
    @ronsn8071 10 месяцев назад

    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? :)

  • @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!!

  • @เป็ดหูหมี
    @เป็ดหูหมี 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?

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

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

  • @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.

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

    Thanks Alex.

  • @codefixx
    @codefixx Год назад

    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

  • @kajian_masjid_basen
    @kajian_masjid_basen 7 месяцев назад

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

  • @TheSpitamen
    @TheSpitamen Год назад

    very good, thanks

  • @mehmetsarresmi
    @mehmetsarresmi 2 года назад +1

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

  • @fabiojaramillo6765
    @fabiojaramillo6765 4 года назад +1

    Can do the same width CI 3?

  • @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)

  • @GoodSham
    @GoodSham 7 месяцев назад

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

  • @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

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

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

  • @katarinagaming7963
    @katarinagaming7963 3 года назад

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

  • @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?

  • @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.

  • @dherendrachaudhary6728
    @dherendrachaudhary6728 3 года назад

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

  • @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.

  • @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.

  • @The.eminence
    @The.eminence 4 года назад

    could do a tutorial using jquery ajax would be really good

  • @humanyu7
    @humanyu7 3 года назад

    How to deploy this to ubuntu live server

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

    Excelent guys

  • @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 RUclips Tutorial Community.

    • @AlexLancer
      @AlexLancer  4 года назад +1

      Trying my best, @Muhammad

  • @averled
    @averled 3 года назад

    Can be used with CI3 ?

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

    very nice

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

    thank you so muchhhhh

  • @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() ?

  • @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

  • @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)

  • @sekolahdigitalku
    @sekolahdigitalku 3 года назад

    It can deploy in shared host?

    • @AlexLancer
      @AlexLancer  3 года назад

      check this video: ruclips.net/video/k943H5OiIdE/видео.html

  • @aaronleet8190
    @aaronleet8190 4 года назад +2

    For a second there i thought your OS was windows 😂

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

    Subscribed

  • @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.

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

    where is data bade

  • @mustafay.499
    @mustafay.499 2 года назад

    50:18 $_GET ???

  • @javericablanca4084
    @javericablanca4084 4 года назад +2

    😯😯😯😯

  • @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

  • @sandhusaab3675
    @sandhusaab3675 3 года назад

    Please for codeigniter 3🙏🏻🙏🏻

  • @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