Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    fw
    @farwish
    @davidcoleman007 it is better to post issues on github directory, i think nobody will always stay in the room.
    xHelg
    @xHelg
    hello, have someone workerman+laravel5+ example? can't fine in google
    find*
    Vasily Bezruchkin
    @vbezruchkin
    hi @xHelg it depends on what you particularly need. Here is the interesting project that could be of some help: https://github.com/garveen/laravoole
    aolko
    @aolko
    so, how do i make dynamic updates as soon as there's new record in my mysql table?
    LuckyCyborg
    @LuckyCyborg

    @aolko You confuse the things...

    The Workerman is something similar with Ratchet for example; it is the infrastructure on top you make your customized socket server, and not a broadcasting service for Laravel.

    So the response to your question: so, how do i make dynamic updates as soon as there's new record in my mysql table? is:

    You make your custom socket server in top of Workerman, then you make your custom infrastructure in the Laravel application, able to talk with your server.

    LuckyCyborg
    @LuckyCyborg

    For an example of custom SocketIO server, giving a broadcasting infrastructure for a Laravel like framework, and working like Pusher, but made in the top of Workerman and PHPSocketIO, there is https://github.com/nova-framework/quasar

    The client javascript part: https://github.com/nova-framework/framework/blob/4.0/assets/js/quasar.js
    The Broadcasting driver: https://github.com/nova-framework/system/blob/4.0/src/Broadcasting/Broadcasters/QuasarBroadcaster.php

    Probably you can adapt the client parts of Quasar to work within Laravel, if you are skilled enough... ;)
    BTW, to note that the Quasar is work-in-progress
    aolko
    @aolko
    Laravel? I'm not that nut yet
    pure php
    and don't occuse me in confusing things https://i.imgur.com/iIX1Hf7.png
    if it can be any simplier i'd like to look at that
    aolko
    @aolko
    or even if it can be coupled with redbean
    rottenberry
    @rottenberry
    Hello everyone. Is there a way to combine a rabbitmq message receiver and a websocket worker?
    Leonid Vinikov
    @iNewLegend
    Hello, i'm looking for manually startup the socket.io project of workerman, instead of using Worker::runAll(); - i didn't found any guide or document, the only when is by study the code?
    LuckyCyborg
    @LuckyCyborg

    The Workerman is a complex beast and a multi-tthreaded console application in PHP.

    I am afraid that a "manually startup" is not a lucky idea.

    Leonid Vinikov
    @iNewLegend
    thanks for you answer
    LuckyCyborg
    @LuckyCyborg
    Long story short, the Workerman is a stand-alone server and it is not supposed to be "integrated" with anything else. Same of PHPSocketIO
    Marc Faussurier
    @MarcFaussurier
    Hello
    Marc Faussurier
    @MarcFaussurier
    Do you have any news about the PSR 7 implementation ? I might need workerman to have a PSR 7 implementation, so I am ready to contribute if it is still something in your roadmap. I am currently building an PSR-compliant MVC framework (https://github.com/MarcFaussurier/NAWP) using your awesome framework.
    LuckyCyborg
    @LuckyCyborg
    And what part of Workerman shall or can ever be PSR 7 compliant?
    Basically, the Workerman is a server, running in console and just happening to be made in PHP
    It is more appropriate to Apache and NGINX than of a MVC framework.
    Marc Faussurier
    @MarcFaussurier
    Yes you are indeed totally right. I just saw that it was planned here : walkor/Workerman#51 maybe that this issue should be closed then
    LuckyCyborg
    @LuckyCyborg
    Again, the PSR 7 refers to a standardization of clients made on PHP of the HTTP protocol. Workerman is not a HTTP client.
    It can be eventually a HTTP server.
    Or a WSS server, etc...
    Marc Faussurier
    @MarcFaussurier
    Yes you are right, there is probably no need of it.
    LuckyCyborg
    @LuckyCyborg
    While I cannot talk in the name of @walkor I do not see something in common between the PSR 7's things and what Workerman do.
    True, someone can make a MVC framework closely integrated with Workerman given context, as I made myself one as part of https://github.com/nova-framework/quasar but that particular MVC framework is just a client/application ran by the Workerman server.
    LuckyCyborg
    @LuckyCyborg
    For example, in my Quasar, the Workerman brings up both a HTTP side made using the MVC concepts and a (PHP)SocketIO server loosely similar with Pusher.
    The second thing have in common with PSR 7 as much as Chinese with English.
    Marc Faussurier
    @MarcFaussurier
    Hello everyone once again, I have a small question today, do someone know if there is a way to define worker count of the phpsocket.io worker ? Or would I be just fine if I stay with 1 worker ($worker->count = 1) ? When I try to increase this number, I have sometime a 403 handshake issue in both firefox and chrome (ubuntu 18.10 / php 7.2.10)
    JT
    @crossmaya
    hi
    Biiiiiig
    @Biiiiiig
    Член мне в рот
    Ребят, что делать если выдает ошибку
    Installation failed, deleting ./composer.json.
    Biiiiiig
    @Biiiiiig
    капец оно круто работает
    2uha
    @2uha_twitter
    всем привет
    Does the workerman extension work well with PHP 7.3.20? nobody noticed the problems?
    2uha
    @2uha_twitter
    @walkor hello, sorry for disturbing. very important. I do php wss.php start ($ ws worker-> count = 4) only 2 workers are started. The other two write total_request = 0. There are no errors - but the connection is not stable. Please tell me why this can be?
    Rafiqul Islam
    @rafpro
    Hi All, I am interested to know the applications of Workerman with WP, I was surprised to know it's power and ability to handle concurrent connection. It would be great to have a better documentation, please.
    I want to use it for serving WP sites, how to do that, any help is highly appreciate, thanks in advance
    Will Jones
    @123quiz
    Hi. I am trying to get phpsocketio working https://github.com/walkor/phpsocket.io/tree/master/examples/chat
    over https
    Cayol Blake
    @cayolblake
    Anybody done benchmarks for Workerman against Swoole?
    1 reply
    Also, does Workerman have coroutines?
    ww9
    @ww9
    Hi! Is it possible that one worker handle more than one request at the same time? Or I can code like it will always only handle the next request after current request is done?
    If so this simplifies code for me.
    ww9
    @ww9
    Got the answer here: walkor/Workerman#245
    this is great. makes development simpler