Streaming
LangFlux supports streaming back to your front end application when the final node is a Chain or OpenAI Function Agent.


Install socket.io-client to your front-end application
or using npm
Refer official docs for more installation options.
Import it
Establish connection
Listen to connection
Send query with
socketIOClientId
Listen to token stream
Disconnect connection
Last updated
Was this helpful?