简体   繁体   中英

Is there any Alternative of SignalR ASP.NET in php (specifically Laravel)

I am working on an api based on laravel version 5.3.

It's going to be like Telegram api that can respond to various clients that written with android, iOS or web version(angularjs).

One thing that is an Impartible part of that kind of api is realtime operations.

According to the survey that I did there is a signalR library for ASP.NET that makes developing real-time web functionality easy for ASP.NET developers.

SignalR supports Web Sockets, and falls back to other compatible techniques for older browsers like :

Now I wanted to know that for php and specifically Laravel, Is there a tool that is also easy to write realtime apis?

Laravel offers broadcasting as a feature to send server-side events to clients. As for clients there is a javascript package which can be implemented

You can read it up in the Laravel Docs

Laravel Echo is a JavaScript library that makes it painless to subscribe to channels and listen for events broadcast by Laravel. You may install Echo via the NPM package manager.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM