github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/inputs/nanomsg.md (about) 1 --- 2 title: nanomsg 3 type: input 4 status: stable 5 categories: ["Network"] 6 --- 7 8 <!-- 9 THIS FILE IS AUTOGENERATED! 10 11 To make changes please edit the contents of: 12 lib/input/nanomsg.go 13 --> 14 15 import Tabs from '@theme/Tabs'; 16 import TabItem from '@theme/TabItem'; 17 18 19 Consumes messages via Nanomsg sockets (scalability protocols). 20 21 22 <Tabs defaultValue="common" values={[ 23 { label: 'Common', value: 'common', }, 24 { label: 'Advanced', value: 'advanced', }, 25 ]}> 26 27 <TabItem value="common"> 28 29 ```yaml 30 # Common config fields, showing default values 31 input: 32 label: "" 33 nanomsg: 34 urls: 35 - tcp://*:5555 36 bind: true 37 socket_type: PULL 38 sub_filters: [] 39 ``` 40 41 </TabItem> 42 <TabItem value="advanced"> 43 44 ```yaml 45 # All config fields, showing default values 46 input: 47 label: "" 48 nanomsg: 49 urls: 50 - tcp://*:5555 51 bind: true 52 socket_type: PULL 53 sub_filters: [] 54 poll_timeout: 5s 55 ``` 56 57 </TabItem> 58 </Tabs> 59 60 Currently only PULL and SUB sockets are supported. 61 62 ## Fields 63 64 ### `urls` 65 66 A list of URLs to connect to (or as). If an item of the list contains commas it will be expanded into multiple URLs. 67 68 69 Type: `array` 70 Default: `["tcp://*:5555"]` 71 72 ### `bind` 73 74 Whether the URLs provided should be connected to, or bound as. 75 76 77 Type: `bool` 78 Default: `true` 79 80 ### `socket_type` 81 82 The socket type to use. 83 84 85 Type: `string` 86 Default: `"PULL"` 87 Options: `PULL`, `SUB`. 88 89 ### `sub_filters` 90 91 A list of subscription topic filters to use when consuming from a SUB socket. Specifying a single sub_filter of `''` will subscribe to everything. 92 93 94 Type: `array` 95 Default: `[]` 96 97 ### `poll_timeout` 98 99 The period to wait until a poll is abandoned and reattempted. 100 101 102 Type: `string` 103 Default: `"5s"` 104 105