CodeIgniter 4 Real Time Chat App using WebSockets

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ม.ค. 2025

ความคิดเห็น • 106

  • @frikkievandermerwe
    @frikkievandermerwe 4 ปีที่แล้ว +4

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

    • @AlexLancer
      @AlexLancer  4 ปีที่แล้ว +3

      Glad you enjoy it!

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

  • @madie2659
    @madie2659 4 ปีที่แล้ว +3

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

    • @AlexLancer
      @AlexLancer  4 ปีที่แล้ว

      Awesome, thank you!

  • @kennethkipchumba2532
    @kennethkipchumba2532 4 ปีที่แล้ว +2

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

  • @DanielZaponi
    @DanielZaponi 10 หลายเดือนก่อน

    Thank you so much for the great content!

  • @Auraprudenceap13
    @Auraprudenceap13 3 ปีที่แล้ว

    Kudos Alex..a very detailed tutorial.

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

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

  • @kajian_masjid_basen
    @kajian_masjid_basen 8 หลายเดือนก่อน

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

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

  • @ronsn8071
    @ronsn8071 11 หลายเดือนก่อน

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

  • @kohofishing
    @kohofishing 4 ปีที่แล้ว

    Thanks Alex.

  • @jeanjoelkapula5681
    @jeanjoelkapula5681 4 ปีที่แล้ว

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

  • @GoodSham
    @GoodSham 8 หลายเดือนก่อน

    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

  • @abdallahabdedaiem51
    @abdallahabdedaiem51 4 ปีที่แล้ว +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.

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

  • @TheSpitamen
    @TheSpitamen ปีที่แล้ว

    very good, thanks

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

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

  • @katarinagaming7963
    @katarinagaming7963 4 ปีที่แล้ว

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

  • @mehmetsarresmi
    @mehmetsarresmi 2 ปีที่แล้ว +1

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

  • @averled
    @averled 3 ปีที่แล้ว

    Can be used with CI3 ?

  • @johnmahugu
    @johnmahugu 4 ปีที่แล้ว

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

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

  • @humanyu7
    @humanyu7 3 ปีที่แล้ว

    How to deploy this to ubuntu live server

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

  • @dherendrachaudhary6728
    @dherendrachaudhary6728 3 ปีที่แล้ว

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

  • @DevidInsee
    @DevidInsee 4 ปีที่แล้ว

    very nice

  • @manto7
    @manto7 4 ปีที่แล้ว

    Subscribed

  • @sekolahdigitalku
    @sekolahdigitalku 4 ปีที่แล้ว

    It can deploy in shared host?

    • @AlexLancer
      @AlexLancer  4 ปีที่แล้ว

      check this video: th-cam.com/video/k943H5OiIdE/w-d-xo.html

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

    • @AlexLancer
      @AlexLancer  4 ปีที่แล้ว +1

      Trying my best, @Muhammad

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

  • @shczxlynqvotte
    @shczxlynqvotte 4 ปีที่แล้ว

    Excelent guys

  • @johangunawan5758
    @johangunawan5758 4 ปีที่แล้ว

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

  • @The.eminence
    @The.eminence 4 ปีที่แล้ว

    could do a tutorial using jquery ajax would be really good

  • @verdipratama
    @verdipratama 4 ปีที่แล้ว

    thank you so muchhhhh

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

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

  • @aaronleet8190
    @aaronleet8190 4 ปีที่แล้ว +2

    For a second there i thought your OS was windows 😂

    • @MyFabricyo
      @MyFabricyo 3 ปีที่แล้ว

      it's not Windows?

  • @GodChessBible
    @GodChessBible 4 ปีที่แล้ว

    is the source code available?

    • @AlexLancer
      @AlexLancer  4 ปีที่แล้ว

      Hey, yes, check the description.

  • @michailb2563
    @michailb2563 4 ปีที่แล้ว

    zoom when it is necessary please

    • @AlexLancer
      @AlexLancer  4 ปีที่แล้ว

      Noted. Thank you.

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

  • @javericablanca4084
    @javericablanca4084 4 ปีที่แล้ว +2

    😯😯😯😯

  • @mustafay.499
    @mustafay.499 2 ปีที่แล้ว

    50:18 $_GET ???

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

  • @sandhusaab3675
    @sandhusaab3675 3 ปีที่แล้ว

    Please for codeigniter 3🙏🏻🙏🏻