workerman | asynchronous event driven PHP socket framework | Websocket library

 by   walkor PHP Version: v4.0.44 License: MIT

kandi X-RAY | workerman Summary

kandi X-RAY | workerman Summary

workerman is a PHP library typically used in Networking, Websocket applications. workerman has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Workerman is an asynchronous event-driven PHP framework with high performance to build fast and scalable network applications. Workerman supports HTTP, Websocket, SSL and other custom protocols. Workerman supports event extension.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              workerman has a medium active ecosystem.
              It has 10467 star(s) with 2260 fork(s). There are 466 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 58 open issues and 510 have been closed. On average issues are closed in 14 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of workerman is v4.0.44

            kandi-Quality Quality

              workerman has 0 bugs and 0 code smells.

            kandi-Security Security

              workerman has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              workerman code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              workerman is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              workerman releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              It has 5474 lines of code, 361 functions and 34 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of workerman
            Get all kandi verified functions for this library.

            workerman Key Features

            No Key Features are available at this moment for workerman.

            workerman Examples and Code Snippets

            No Code Snippets are available at this moment for workerman.

            Community Discussions

            QUESTION

            Wait for Preferences Datastore to retrieve data from preferences datastore in workmanager
            Asked 2022-Jan-04 at 12:40

            My app is checking for unread emails in the background, the problem is that i need to save and retrieve lastCheckedDate when i last checked for emails so i can show only newly received emails.

            For retrieving data from datastore i use observeLastCheckedDate() and i must call it with handler because if i dont i get:

            java.lang.IllegalStateException: Cannot invoke observe on a background thread

            Function observeLastCheckedDate() get called but while it finish(updates lastCheckedDate), workManager task is already finished with not-updated var lastchecked date.

            In main class i avoid this problem by creating and invoking callback but here that does not work(it makes whole app freeze), so we somehow need to wait for that function to finish or get some new way of retreiving data from datastore.

            ...

            ANSWER

            Answered 2022-Jan-03 at 18:46

            That's a HUGE mess with threading for simple work. (Never make your thread sleep to wait for a value)

            if you going to use coroutines in the worker class. SO DON'T DO THAT

            there is an alternative CoroutineWorker to extend your class from it instead of Worker

            it will provide you with suspending version of doWork() function

            NOTE: remember to add the -ktx version of the work manager dependency

            Source https://stackoverflow.com/questions/70567126

            QUESTION

            WorkManager throws NetworkOnMainThreadException when in background
            Asked 2022-Jan-02 at 18:34

            I want my app to read emails and send notifications while in the background while using workmanager, my work manager is stopping working after a couple of executions throwing NetworkOnMainThreadException on background tasks: I want to make a reliable app for sending notifications for newly received emails which means I need it to execute forever every 15 minutes. Do you know how can I avoid this problem?

            WorkManager class:

            ...

            ANSWER

            Answered 2022-Jan-02 at 18:34

            I fixed a problem by calling

            Source https://stackoverflow.com/questions/70558269

            QUESTION

            PHP Async Multi-threaded Curl Application
            Asked 2020-Sep-10 at 12:00

            I'm looking to build a process/script that can handle at least 300-400 transaction per second. Currently i'm using Workerman to do the following job. I can run without any issue with 400 threads , but the tps was around 60-70 tps it can process with latency of less than a second.

            Below is the working code :-

            main.php:-

            ...

            ANSWER

            Answered 2020-Sep-10 at 12:00

            I found out OS Unix has limitation when it comes to handle multiple request above 200-300 tps.

            I had found another alternative using guzzleHTTP , that helped me. It helped me to achieve 600 tps + with transaction latency of 2 seconds.

            Source https://stackoverflow.com/questions/63591974

            QUESTION

            PHP websockets with Workerman - nginx configuration
            Asked 2020-Jul-07 at 18:34

            I'm trying to use Workerman in my project, but having issues with nginx configuration. I'm using docker on my local machine and socket.my-app.local is translated to 127.0.0.1 in my local host file. I've followed instructions for nginx reversed proxy, and set it up like this:

            ...

            ANSWER

            Answered 2020-Jul-07 at 18:34

            Issue was docker containers use internal namespace to communicate, so I had to change localhost to container name, php-fpm in my case, and I had to open websocket port on webserver container, as well as to listen to that port on webserver, in order to proxy those requests.

            Source https://stackoverflow.com/questions/62775778

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install workerman

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/walkor/workerman.git

          • CLI

            gh repo clone walkor/workerman

          • sshUrl

            git@github.com:walkor/workerman.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Websocket Libraries

            netty

            by netty

            ws

            by websockets

            websocket

            by gorilla

            websocketd

            by joewalnes

            koel

            by koel

            Try Top Libraries by walkor

            Workerman

            by walkorPHP

            phpsocket.io

            by walkorPHP

            workerman-todpole

            by walkorPHP

            webman

            by walkorPHP

            workerman-chat

            by walkorPHP