Project

General

Profile

Websockets

Added by Alexander Lyalin about 13 years ago

Hi all,

how can I make a connection on a websockets and the means to send / receive data?

Thanks.


Replies (2)

RE: Websockets - Added by Wim Dumon about 13 years ago

Alexander,

Wt uses websockets automatically if it detects that your browser supports it and when you set this flag in wt_config.xml

<web-sockets>true</web-sockets>

All signal/slots, JavaScript, code submitted by doJavaScript(), ... will be sent through the websockets connection, while hrefs will still use the normal HTTP protocol (non-inline CSS, images (unless dataurl), ...).

Wim.

RE: Websockets - Added by Alexander Lyalin about 13 years ago

Thanks a lot!

    (1-2/2)