#03 Laravel Real-time Chat application - Websocket Installation on Server Run

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

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

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

    At 4:56 remember to add 👉👉 *BROADCAST_DRIVER=pusher* I've forgotten to tell that.

  • @wick.programmer
    @wick.programmer ปีที่แล้ว +1

    very exciting brother

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

    Hi. Thanks for your video. Can this setup run without issues on shared hosting?

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

      Need to install a supervisor on hosting. You can do that by terminal.
      I had a plan also to do that in a cpanel.

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

    Have already setup Broadcast driver and all still not able to connect channel. Getting error like 'Channels current state is unavailable' I want do it with SSL and pusher both

  • @FatmaAhmed-mx5qr
    @FatmaAhmed-mx5qr ปีที่แล้ว

    I have an error in laravel websocket dashboard about Vue

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

    whenever i sent message from dashborad it sents but does not sent from tinker
    what should i do??

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

      Implement ShouldBroadcastNow Interface in the Event Class definition @hammadraza6536

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

    me sale este errro Error sending event. pero no se por que

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

    BROADCAST_DRIVER=pusher dite hobe 😀

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

      Yes, I have made a pinned comment here.

  • @SohelRana-ir3ls
    @SohelRana-ir3ls ปีที่แล้ว

    statistics:1
    Failed to load resource: the server responded with a status of 500 (Internal Server Error)

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

    When I send a request event, I got an error in an alert box like error sending event. What should I do?

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

      Where?? Is that in Websocket dashboard or tinker terminal?
      For websocket dashboard, for message input, you have to pass a json object. Please clarify first

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

      @@Maniruzzaman In 5:30, sending in json format like you.

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

      Have you updated BROADCAST_DRIVER=pusher
      At .env

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

      If that doesn't help, inspect element and take a screenshot of error message on console, add that screenshot image url link here

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

      @@Maniruzzaman I forgot to change PUSHER_SCHEME from https to http. It's all ok now.

  • @UmarBhatti-b9m
    @UmarBhatti-b9m 7 หลายเดือนก่อน

    there is much voice distorion in this video

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

    is it free? websocket and pusher?

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

      We're using custom Pusher implementation, so definitely it's free as it's hosted on our server.
      But pusher is paid. We can do similar things with Pusher, but I think, we can try with the free one laravel offers.

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

    At 8:35 am not getting any message

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

      Maybe you could run command in a new terminal.
      And have you added BROADCAST_DRIVER=pusher ??

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

      @@Maniruzzamanno i didn't add BROADCAST_DRIVER=pusher Where about do you add BROADCAST_DRIVER=pusher

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

      @@victorynwefo5989 in .env file.
      There is already a variable for BROADCAST_DRIVER. Just update that to pusher

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

      @@Maniruzzaman nice is working now thanks man

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

    Installation failed, reverting ./composer.json and ./composer.lock to their original content.
    does not work with laravel 10
    Your requirements could not be resolved to an installable set of packages.
    Problem 1
    - beyondcode/laravel-websockets 1.14.0 requires react/http ^1.1 -> satisfiable by react/http[v1.1.0, ..., v1.9.0].
    - beyondcode/laravel-websockets[1.0.0, ..., 1.3.0] require php ^7.1 -> your php version (8.1.6) does not satisfy that requirement.
    - beyondcode/laravel-websockets[1.4.0, ..., 1.10.0] require php ^7.2 -> your php version (8.1.6) does not satisfy that requirement.
    - beyondcode/laravel-websockets[1.11.0, ..., 1.13.0] require guzzlehttp/psr7 ^1.5 -> found guzzlehttp/psr7[1.5.0, ..., 1.9.1] but the package is fixed to 2.5.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - beyondcode/laravel-websockets[1.13.1, ..., 1.13.2] require illuminate/broadcasting ^6.0|^7.0|^8.0|^9.0 ->code/laravcode/laravel-websockets:*" to figure out if any version is installable, or "composer require beyondcode/laravel-websockets:^2.1" if you know which you need.
    Installation failed, reverting ./composer.json and ./composer.lock to their original content.

  • @arunraja-x7l
    @arunraja-x7l ปีที่แล้ว +1

    After i am installing i am facing the error
    Problem 1
    - beyondcode/laravel-websockets[1.13.1, ..., 1.14.0] require react/http ^1.1 -> satisfiable by react/http[v1.1.0, ..., v1.9.0].
    - beyondcode/laravel-websockets[1.0.0, ..., 1.3.0] require php ^7.1 -> your php version (8.0.28) does not satisfy that requirement.
    - beyondcode/laravel-websockets[1.4.0, ..., 1.10.0] require php ^7.2 -> your php version (8.0.28) does not satisfy that requirement.
    - beyondcode/laravel-websockets[1.11.0, ..., 1.13.0] require guzzlehttp/psr7 ^1.5 -> found guzzlehttp/psr7[1.5.0, ..., 1.9.1] but the package is fixed to 2.5.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - react/http[v1.1.0, ..., v1.9.0] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires beyondcode/laravel-websockets * -> satisfiable by beyondcode/laravel-websockets[1.0.0, ..., 1.14.0].
    Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
    You can also try re-running composer require with an explicit version constraint, e.g. "composer require beyondcode/laravel-websockets:*" to figure out if any version is installable, or "composer require beyondcode/laravel-websockets:^2.1" if you know which you need.

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

      try this: composer require beyondcode/laravel-websockets -w

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

      thank you very much