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


Groups > comp.lang.javascript > #33520

Re: Executing code pushed from the server

From Stefan Weiss <krewecherl@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Executing code pushed from the server
Date 2017-06-10 02:13 +0200
Organization albasani.net
Message-ID <ohfdj3$61t$1@news.albasani.net> (permalink)
References <769e8d95-b693-4d1c-ae54-07f273d1c331@googlegroups.com> <edd491da-7fdf-4dfc-8578-f28494d2428e@googlegroups.com>

Show all headers | View raw


bit-naughty@hotmail.com wrote:
> Uhh no Stefan, it *has* to be Push. (Out of curiosity, how would I
> architect this with WebSockets?) But no.... - it HAS to be Push.

I still don't understand why, but whatever.

WebSockets can be used to implement server push. If you want to build this
yourself, there are plenty of examples for the client side on the web. I
can't say anything about the server side, because you haven't answered my
questions.

I stand by my suggestion to use an existing chat implementation as simplest
solution for you (ideally containing both the server and client components).

MDN even has a page dedicated to writing WebSocket client applications. The
example they use is - surprise surprise - a web chat.


Next time, please reply to the message you're referring to, and quote some
context.


- stefan

Back to comp.lang.javascript | Previous | Next — Previous 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