Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #33461

Re: Executing code pushed from the server

Path csiph.com!aioe.org!.POSTED!not-for-mail
From Richard Maher <maher_rjSPAMLESS@hotmail.com>
Newsgroups comp.lang.javascript
Subject Re: Executing code pushed from the server
Date Thu, 1 Jun 2017 06:39:38 +0800
Organization Aioe.org NNTP Server
Lines 11
Message-ID <ogngni$7dn$1@gioia.aioe.org> (permalink)
References <769e8d95-b693-4d1c-ae54-07f273d1c331@googlegroups.com>
NNTP-Posting-Host jOhPn0KFjrxwuMc9OPMmCw.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 10.0; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.javascript:33461

Show key headers only | View raw


On 01-Jun-17 1:34 AM, bit-naughty@hotmail.com wrote:
> Is there any way some JS code can be SENT TO the client, upon a keypress at the server, and executed there? Like, people are on a website, and when the key is pressed on the server, they see something new happening inside their browser?
> I'm guessing this is something to do with EventSource and eval, but....*how* though?
>
>
> Thanks.
>
WebSockets may be able to help you. I like the Push API and with 
Firebase's implementation there is topic-based subscription.

Why can't the code you want to execute be on the page?

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Executing code pushed from the server bit-naughty@hotmail.com - 2017-05-31 10:34 -0700
  Re: Executing code pushed from the server "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-31 19:43 +0200
  Re: Executing code pushed from the server Stefan Weiss <krewecherl@gmail.com> - 2017-05-31 20:25 +0200
    Re: Executing code pushed from the server bit-naughty@hotmail.com - 2017-06-01 09:35 -0700
      Re: Executing code pushed from the server Stefan Weiss <krewecherl@gmail.com> - 2017-06-09 04:54 +0200
  Re: Executing code pushed from the server Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2017-06-01 06:39 +0800
  Re: Executing code pushed from the server bit-naughty@hotmail.com - 2017-06-09 08:54 -0700
    Re: Executing code pushed from the server Stefan Weiss <krewecherl@gmail.com> - 2017-06-10 02:13 +0200

csiph-web