Skip to content

Latest commit

 

History

History
 
 

websocket

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Websocket Client

Start a Flow with WebSocket protocol

jina flow --uses flow.yml

Send DataRequests to the Flow

go run main.go --host ws://localhost:12345
Total 3 docs received.
DocID: 0
        Chunk 0 text: Hello world. 
        Chunk 1 text: This is a test document with id:0 
DocID: 1
        Chunk 0 text: Hello world. 
        Chunk 1 text: This is a test document with id:1 
DocID: 2
        Chunk 0 text: Hello world. 
        Chunk 1 text: This is a test document with id:2