API Platform Conference 2022 - Pauline Vos - PHP WebSockets

Поделиться
HTML-код
  • Опубликовано: 25 авг 2024
  • Async PHP is here to stay!
    As the web modernizes, so does PHP. We can now build servers that can send and receive messages to users in real-time. And what's more, it's super fun and easier than ever.
    Let me tell you all about WebSockets and show you how to build your own rafle machine that updates users in real-time, from server to client. In pure, modern PHP and React.
    _________
    More info: api-platform.c...
    Twitter: / apiplatform
    Music credits: Vanilla by Time Warp

Комментарии • 3

  • @webdev723
    @webdev723 Год назад

    Amazing

  • @rezanami3925
    @rezanami3925 Год назад

    Dear My friend, thank you for your great video, actually I have a question,
    I am trying to send a buy or sell request in a broker website by web socket, Normally, I copy the request fetch and run it on console, is it possible to use web socket to send a request and receive the response? How could we change fetch request to web socket?
    If you could help me , I ‘ll be really appreciate.

    • @PPVos-sg4ey
      @PPVos-sg4ey Год назад +1

      Hi! Sorry I only saw it now. The answer is that it really depends on how the websocket server is implemented. Websockets doesn't mandate any specific protocol, so it's up to the websocket server developer to decide on the protocol/shape of the messages. I would consult the documentation for the specific websocket server. Hope that helps