Is there any Javascript TCP Soket Library for PHP like SignalR with .NET?

前端 未结 3 1094
执念已碎
执念已碎 2020-12-07 01:36

I found SignalR library for ASP.NET developers that simplifies the process of adding real-time web functionality to applications.

Is there any similar library for ph

相关标签:
3条回答
  • 2020-12-07 01:54

    Yes please find information at:

    (1) http://php.net/manual/en/sockets.examples.php

    (2) As well as can Creating Real Time Applications with PHP and WebSockets

    PHPWebSockets is a WebSockets server written in PHP (https://github.com/ghedipunk/PHP-WebSockets).

    The WebSocket server itself is a class that can be extended to write the rest of the application. The WebSockets.php is the base class and we need to extend that class to write our own simple WebSocket server application. The WebSockets.php base class does the socket management and WebSocket handshake.

    0 讨论(0)
  • 2020-12-07 02:08

    you can use Ratchet follow below link

    php library

    0 讨论(0)
  • 2020-12-07 02:13

    Yes their is some other also.

    If you don't want to code so much and your requirement is just push notification then do some research on ONESIGNAL.

    Follow these links:

    OneSignal Documentation

    OneSignal API Reference

    • Make Free Account.
    • Register your Application with ONESIGNAL
    • Consume ONESIGNAL api in your project with their few lines generic code.
    0 讨论(0)
提交回复
热议问题