-
Workerman frame protocol issues
require_once __DIR__ . vendor autoload.php ;
use Workerman Worker;
use Workerman Lib Timer;
$f_worker = new Worker( frame: 0.0.0.0:1223 );
$f_worker->onConnect = function ($connection){
echo "connection success n";
};
$f_worker...
-
About the problem that the workerman deployment cannot be connected to the server
Server ports and services have been started normally
the browser connects to the websocket server, but the ip that prompts the net::ERR_CONNECTION_REFUSED, browser to connect also belongs to the server. The server firewall has also been turned off...
-
Workerman onWorkerStart initialization redis connection question
this question encountered when using workerman s gateway framework Events.php
<?php
**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redist...
-
Why is the nginx proxy_pass instruction http protocol when using nginx proxy wss?
Program I have tested through the following is the configuration of nginx forwarding I don t understand
websocket service I opened a websocket service using gatewayworker
Why is http in forwarding
if I visit this address directly, he will promp...
-
Does the workerman register service keep only gateway addresses in memory, not when worker registers?
1, Register, Gateway, BusinessWorker processes start
2. After the Gateway and BusinessWorker processes start, they initiate persistent connections to register themselves with the Register service process
3. After receiving the registration of Gatewa...
-
Bidding control countdown data
bidding projects use the GatewayWorker framework and redis, within 10 seconds of the countdown, the customer is below the guaranteed price, blocking the deal! My idea is to plug a robot when multiple normal users compete for bids, how to control this cou...
-
How does workerman implement that once new data is added to a table in the mysql database, it will send the new data to the front end?
my requirement is that I use workerman to make long links between the front and back ends, and then once a table in mysql has new data, it will send the new data to the front end, and the data sent is an array. How should I implement it? If my descriptio...
-
Workerman process thread management issues
I would like to ask the elder in the industry that workerman maintains a long connection on the client. If the client is disconnected at this time (not actively disconnected), the thread occupied by the client will not be reclaimed. When the client recon...
-
After the normal communication of the TCP persistent connection is successful, how does the PHP server call the returned data?
how does the PHP server call the returned data after the normal communication of the TCP persistent connection is successful?
I have a car networking project, and now I can communicate with each car normally through gatwaywork. But now you can t just...
-
Use web-msg-sender as the server to push messages. When you encounter a problem in the test, ask for advice.
after the message is sent successfully, the receiving end will receive the second message again after one minute
PS:An opens the chat page to send a message to B, and after a minute, B s chat interface will repeatedly receive the message sent by A
...
-
Want to do this: the device connects to the server through tcp, and the framework uses worker or gateway
want to achieve: the device connects to the server through tcp, and the server processes it in real time and then forwards the message to a web page in real time (you can use websocket), framework to use worker or gateway, to ask for advice ...
-
After thinkphp5.1 workman starts the integration of webserver, and hprose, there is no content output.
The framework uses tp5.1,workman using the composer package officially provided by tp. Would like to ask if the integration of hprose?
the attempts made are as follows:
Controller (acts as client)
access to index did not get any return value, ...
-
How do timers in workerman call external api,
I separated mvc from workerman, on two servers. Now the task requirement is to regularly call the method encapsulated in mvc in the timer of workerman, how to achieve it, the method of using native php access interface has been reported errors, there is ...
-
Workerman retransmission problem
SOCKET
public function Connect($info)
{
$val=$info;
$w_file = .. config.txt ;
file_put_contents($w_file,$val,FILE_APPEND); W+
set_time_limit(0);
$host = self::TCP_SER_HOST;
$port = self::...
-
An error occurred in the website where workerman connects to httts
error prompt: WebSocket connection to wss: (URL): 2346 failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR I think it may be the certificate
Source code input: ws = new WebSocket ( "wss: (URL: 2346 ");
if you connect to a...
-
Shell script enables Linux to deploy workerman with one click
problem description
CentOs7 system, shell script implements one-click deployment of workerman
the environmental background of the problems and what methods you have tried
CentOs7 system try Baidu to find information but failed to solve
related ...
-
How does workerman specify that users send messages?
how can workerman, like gatewayworker, bind uid and client_id together to send messages to designated users, online, etc., and beg for help from bosses, so that good people can live a safe life! ...
-
The isUidOnline ($uid) of gatewayworker in workerman is not online.
question 1: worker, the device on my side has successfully logged in and bound uid,. When receiving heartbeat instructions, I made a judgment on whether uid is online, but when the device successfully logged in for the first time and sent a heartbeat, G...
-
I would like to ask GatewayWorker how to restart smoothly under windows.
problem description
in the development of the mobile client (H5 page), the access control device is controlled by the cloud server. The device communicates through the pure tcp protocol as the tcp client, and the tcp server is set up with GatewayWorke...
-
About the invocation mode of using workerman in conjunction with codeigniter
excuse me, what should I do if workerman is enabled through PHP frameworks such as TP or CI, but some configuration files in the framework use the $_ SERVER constant, and failure to get $_ SERVER in CLI mode will cause an error?
class Mqtt extends CI_C...