Recent

Author Topic: Websockets  (Read 3365 times)

mlody87

  • New Member
  • *
  • Posts: 14
Websockets
« on: July 21, 2017, 02:25:14 pm »
Hi!
Do you know where I find websockets examples for lazarus? Client/Server?

I want to create http server but if I use simple http connection then I cant send data to client if he didnt send some get/post. I think right?

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Websockets
« Reply #1 on: July 21, 2017, 06:42:37 pm »
I want to create http server but if I use simple http connection then I cant send data to client if he didnt send some get/post. I think right?
In that case, would it not be much easier to use a class/solution that already encapsulates a httpserver (instead of programming your own one using sockets) ?

fcl-web package in FPC has examples. A detailed pdf document from Michael can be read here (PDF)


codewar65

  • New Member
  • *
  • Posts: 13
Re: Websockets
« Reply #2 on: July 21, 2017, 10:51:36 pm »
Hi!
Do you know where I find websockets examples for lazarus? Client/Server?

I want to create http server but if I use simple http connection then I cant send data to client if he didnt send some get/post. I think right?

My project is successfully using http and websockets. You can see my messy code here:

https://github.com/codewar65/VTX_ClientServer

 

TinyPortal © 2005-2018