Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

php

signalr

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 php that also do the same job like signalR??

like image 466
user-4653387 Avatar asked Feb 18 '16 05:02

user-4653387


People also ask

What is difference between SignalR and WebSocket?

WebSockets is actually the underlying transport that SignalR uses, at least most of the time. SignalR has the ability to fall back to other ways of transporting messages, such as long-polling over HTTP. This is useful in situations where you don't have WebSockets support.

Does SignalR use HTTP?

A SignalR uses a transport medium such as WebSocket to communicate between server and client. A SignalR connection starts as HTTP and is then promoted to a WebSocket connection if available. WebSocket is the ideal transport for SignalR.

What is SignalR .NET core?

What is SignalR? ASP.NET Core SignalR is an open-source library that simplifies adding real-time web functionality to apps. Real-time web functionality enables server-side code to push content to clients instantly. Good candidates for SignalR: Apps that require high frequency updates from the server.

What is SignalR connection?

SignalR is an abstraction over some of the transports that are required to do real-time work between client and server. SignalR first attempts to establish a WebSocket connection if possible. WebSocket is the optimal transport for SignalR because it has: The most efficient use of server memory.


2 Answers

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.

like image 124
Atul Pandya Avatar answered Oct 11 '22 19:10

Atul Pandya


you can use Ratchet follow below link

php library

like image 25
Alireza Salehi Avatar answered Oct 11 '22 19:10

Alireza Salehi