PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WebSockets in WebDev
WebSockets in WebDev
Iniciado por guest, 20,abr. 2015 06:48 - 3 respuestas
Publicado el 20,abril 2015 - 06:48
Hi:
Does someone know how WebSockets can be implemented in WebDev?

Thanks
Michael
Publicado el 21,abril 2015 - 14:24
Hi Michael,

What do you mean by WebSockets?

Do you mean implementing the new WebSocket protocol? http://tools.ietf.org/html/rfc6455

Do you mean creating a server socket on the web server side? <a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.windev.com/en-US/?3070011">http://doc.windev.com/en-US/&hellip;</a>

In the first case, maybe you can look at examples of what already exist. I do not know if it is possible to implement it on server side. Maybe a question or suggestion to PCSoft could be made in this regard. On the Web browser side this is a matter of coding the javascript procedures and if the Web browser is HTML5 compliant, it should work. That being said, I have no experience with WebSocket protocol.

Best regards,
Alexandre Leclerc
Publicado el 21,abril 2015 - 20:47
Hello Alexandre:

Thanks for your answer.

Yes, WebSockets are not supported by WebDev. I'm wondering how difficult would be to make a (minimal) implementation on the server side, using sockets functions.
On the browser side, as you said, using the JavaScript would suffice.

Thanks
Michael
Publicado el 21,abril 2015 - 22:08
Hi Michael,

Well, one would need to implement the server side protocol (as defined in <a class="ExternalLink" rel="nofollow" target="_blank" href="http://tools.ietf.org/html/rfc6455">http://tools.ietf.org/html/rfc6455</a>) on the WebDev server using a socket. This doable but will require time. That would work, but is quite an undertaking.

Kind regards,
Alexandre Leclerc