Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    GYQuark
    @GYQuark
    #225 123
    sm2017
    @sm2017
    Hello
    Any body there??
    orchief
    @orchief
    anyone?
    hury
    @nicerway
    yes you get it
    David Kenneth Coleman
    @davidcoleman007
    Goodbye dead room and dead framework that doesn't support promises and will probably not exist in a year or so.
    fw
    @farwish
    i used workerman with symfony2, so you can use it simple with your favorite php framework in console command or just a single file, a piece of code here: http://www.cnblogs.com/farwish/p/7988617.html
    fw
    @farwish
    @HillLiu Is it mean "ten thousand" for "W" (萬) ? yes
    fw
    @farwish
    @zubosem you can dump traffic on a network using tcpdump command at linux platform, trace system calls and signals using strace or ptrace etc. Now talk about threads, workerman choose multi process model, every process have one single thread.
    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?