MCPcopy Create free account
hub / github.com/bugy/script-server / pipe_output_to_http

Function pipe_output_to_http

src/web/server.py:756–764  ·  view source on GitHub ↗
(output_stream, write_callback)

Source from the content-addressed store, hash-verified

754
755
756def pipe_output_to_http(output_stream, write_callback):
757 class OutputToHttpListener:
758 def on_next(self, output):
759 write_callback(wrap_to_server_event('output', output))
760
761 def on_close(self):
762 pass
763
764 output_stream.subscribe(OutputToHttpListener())
765
766
767def intercept_stop_when_running_scripts(io_loop, execution_service):

Callers 1

openMethod · 0.85

Calls 2

subscribeMethod · 0.45

Tested by

no test coverage detected