logstash-plugins / logstash-input-websocket

Apache License 2.0
13 stars 18 forks source link

How to pass a subprotocol for the input puglin of websocket #10

Open yoelfme opened 8 years ago

yoelfme commented 8 years ago

Basically in Javascript I can make this

var ws = new WebSocket('ws://localhost:8080', 'my-own-subprotocol');

But the configuration for the websocket only allows the following settings

Setting Input Type
add_field hash
codec codec
mode string, one of ["server", "client"]
tags array
type string
url string

More info

magnusbaeck commented 8 years ago

Indeed, it's currently not possible to send a subprotocol name along with the WebSocket handshake request. This is a reasonable feature request that AFAICT doesn't require any changes from the ruby-ftw WebSocket library that's used. I can't give any ETA though.

yoelfme commented 8 years ago

@magnusbaeck that's good :)