You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are multiple ways to provide input to your Child Process:
214
214
215
-
-The environment.
216
-
-Arguments to the command.
217
-
-Its standard input stream (`STDIN`).
218
-
-A custom interface, e.g. a network socket.
215
+
- The environment.
216
+
- Arguments to the command.
217
+
- Its standard input stream (`STDIN`).
218
+
- A custom interface, e.g. a network socket.
219
219
220
220
Which you use will depend on what the program is capable of handling.
221
221
@@ -266,10 +266,10 @@ The message format and how they are handled will be determined by the program yo
266
266
267
267
A Child Process may send output via any of the following interfaces:
268
268
269
-
-Its standard output stream (`STDOUT`).
270
-
-Its standard error stream (`STDERR`).
271
-
-A custom interface, e.g. a network socket.
272
-
-Broadcasting a Custom Event
269
+
- Its standard output stream (`STDOUT`).
270
+
- Its standard error stream (`STDERR`).
271
+
- A custom interface, e.g. a network socket.
272
+
- Broadcasting a Custom Event
273
273
274
274
`STDOUT`, `STDERR` & [Custom Events](/docs/digging-deeper/broadcasting#custom-events) are dispatched using
275
275
Laravel's event system.
@@ -297,7 +297,7 @@ All events get dispatched as regular Laravel events, so you may use your `AppSer
297
297
298
298
```php
299
299
use Illuminate\Support\Facades\Event;
300
-
use Native\Laravel\Events\ChildProcess\MessageReceived;
300
+
use Native\Desktop\Events\ChildProcess\MessageReceived;
301
301
302
302
/**
303
303
* Bootstrap any application services.
@@ -317,37 +317,37 @@ Sometimes you may want to listen and react to these events in real-time, which i
317
317
Child Process events to the `nativephp` broadcast channel. Any events broadcasted this way also get dispatched over IPC, enabling you to react to them on the front-end without using websockets.
0 commit comments