Comments (1)
Hi, sure you can use a web-socket server as an subscriber/interrogator of a clients and also save the connection info (like unique socket ids etc), clients after they were connected should send some events, for example in your case it would be more relevant to send pings:
public function onPing(ConnectionContract $conn, $msg)
{
// TODO: Implement onPing() method.
}
PS for discussions there is a better tool recently provided by GitHub - "Discussions"
from php-wss.
Related Issues (20)
- Proxy Connection Problem HOT 8
- Insufficient buffer size for HTTP collateral HOT 1
- Opcode check inaccuracy
- SSL Support HOT 6
- Refactor variables/naming with underscore artefacts
- Adopt to php7.4-8.0 transition next to 2.0 major release
- Bug $isMasked is always true
- Bug: unsaved large frame payload and closed connection (on server) HOT 3
- stream_socket_accept(): Accept failed: Operation timed out HOT 1
- Websocket limits Timeout and Clients per Fork HOT 5
- How to install a socket server HOT 3
- The package name composer require arthurkushman/php-wss is invalid, HOT 1
- Trying to access array offset on value of type bool HOT 3
- PHP Fatal error: Uncaught WSSC\Exceptions\ConnectionException: Could not open socket to "localhost:8888": (0). HOT 1
- stream_socket_enable_crypto(): SSL: Handshake timed out - high CPU usage HOT 5
- "PHP Warning: stream_select(): You MUST recompile PHP with a larger value of FD_SETSIZE" HOT 2
- Invalid server upgrade response and bad opcode HOT 1
- How client checks if any new messages available to receive?
- HTTP/1.1 301 Moved Permanently HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-wss.