websocket

Connects to a websocket server and continuously receives messages.

# Common config fields, showing default values
input:
websocket:
url: ws://localhost:4195/get/ws

It is possible to configure an open_message, which when set to a non-empty string will be sent to the websocket server each time a connection is first established.

Fields

url

The URL to connect to.

Type: string
Default: "ws://localhost:4195/get/ws"

# Examples
url: ws://localhost:4195/get/ws

open_message

An optional message to send to the server upon connection.

Type: string
Default: ""

oauth

Allows you to specify open authentication.

Type: object
Default: {"access_token":"","access_token_secret":"","consumer_key":"","consumer_secret":"","enabled":false,"request_url":""}

# Examples
oauth:
access_token: baz
access_token_secret: bev
consumer_key: foo
consumer_secret: bar
enabled: true
request_url: http://thisisjustanexample.com/dontactuallyusethis

basic_auth

Allows you to specify basic authentication.

Type: object
Default: {"enabled":false,"password":"","username":""}

# Examples
basic_auth:
enabled: true
password: bar
username: foo