Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Gravity brings me down.


devel / comp.lang.javascript / Re: Automatic turn on of objects

SubjectAuthor
o Re: Automatic turn on of objectsJJ

1
Re: Automatic turn on of objects

<nyrguoum0wrb.1tknk1b13pxmn.dlg@40tude.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18245&group=comp.lang.javascript#18245

  copy link   Newsgroups: comp.lang.javascript comp.lang.php
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jj4public@outlook.com (JJ)
Newsgroups: comp.lang.javascript,comp.lang.php
Subject: Re: Automatic turn on of objects
Date: Fri, 18 Aug 2023 22:33:16 +0700
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <nyrguoum0wrb.1tknk1b13pxmn.dlg@40tude.net>
References: <ubo1l4$10ou$40@gallifrey.nk.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="ddb28896e7ed099de9f79bf678c8c2b4";
logging-data="341803"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6b8GntVKt8rJj/fM6QThIq8oKm1ngpVI="
User-Agent: 40tude_Dialog/2.0.15.84
Cancel-Lock: sha1:4+UN6vUpIyjIKLy2Rx6BHEIKn3I=
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
 by: JJ - Fri, 18 Aug 2023 15:33 UTC

On Fri, 18 Aug 2023 15:10:28 -0000 (UTC), The Doctor wrote:
> Is there a way to automatically "turn on" an object
> in php and/or javascript.

It will need and depend on an event or timer to trigger a code execution.

In client side JavaScript, it can be from `setTimeout()`, `setInterval()`,
`addEventListener()`, or a `Promise`.

In server side JavaScript, it can be from a `Promise`, or from a
module-provided (module-specific) timer and/or event.

PHP's case would be similar to server side JavaScript.

Though for server side scripts, it will require external tool or separate
thread to be notified of an event without blocking the code execution.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor