Hello,

Wt supports WebSocket.
See configuration option "web-socket" in wt_config.xml.
If you set it to true, then triggerUpdate and even ajax updates
initiated by client are transmitted through WebSocket.

WebSockets in Wt suffers from several drawbacks (maybe some of them
are already fixed):

1. WebSocket can freeze sometimes and Wt doesn't deal with this
properly. User has to refresh his session if this happens.

2. WebSocket data is not compressed, so it can be less efficient than
plain HTTP with keep-alive.

3. WebSocket requires newest version of nginx or other http-server
(e.g. haproxy) before nginx. Apache doesn't support WebSockets out of
box AFAIK.

I still don't use WebSockets in my Wt projects, mostly because of reason (1).

Best regards,
Boris Nagaev


On Mon, Oct 6, 2014 at 2:31 AM, Omar GIVERNAUD <o.givern...@gmail.com> wrote:
> Hi all,
>
>
> what would be the best way to stream/push some data from (in my case a tty)
> to some external js module (term.js)?
>
> So far I am using a post and triggerUpdate methods, but not sure it is the
> most efficient. Isn't is possible to use a websocket stream from wt?
>
> regards
>
> trax
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to