walkor / walkor/workerman

Transferring data between workers

Open
#1,028 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
11.6k
Forks
2.2k
Avg merge
11h 30m
Merged PRs (30d)
3

Description

Good day!
I have the config:


```
$this->worker = new Worker(self::getWebsocketAddressWorker(), $this->context);

$this->worker->count = 4;
```

How can transfer data between workers? For example, one client received a connection in the first worker. And another client received a connection in the second worker. Need to transfer data from one client to another. But this requires access to the connection from the first client in the second worker. How to correctly receive data (example Connection) from another worker?

It seems that each worker has its own global variables

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.