Home  >  Q&A  >  body text

Why can't PHP maintain a long connection when using Sever-Sent Event? Instead, it disconnects immediately after returning data.

As the title states, when PHP uses SSE, every time the connection is successful, data is returned, and then the connection is interrupted. Originally, SSE should maintain a long connection, and then return new data to the front end if the data changes. Why can't you maintain a long connection?D5D91E7P0RA{~ZUC5R0`{NA.pngThe browser also enables long connectionsAVB74GPRD@PF)1L~{18%WBT.pngP]63N8ZVSOGG(SYVYH`S9NU.png9[~JB`_~070ZKBBG58XNAAE.png



无乐无乐1772 days ago976

reply all(0)I'll reply

No reply
  • Cancelreply