Skip to content

alexobviously/shelf_ndjson_stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shelf_ndjson_stream

A wrapper for easily streaming ndjson responses from a shelf server.

  • Create an NdjsonStream object.
  • Return stream.response in a Shelf handler.
  • Add messages to it with stream.add().
  • Don't forget to call stream.close(), or the connection will stay open forever (or likely produce some strange behaviour).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages