How to open websocket with authorization token

I'm trying to get logstash to listen to a websocket that requires authentication.

WebSocket documentation

Javascript example

var ws = new WebSocket('wss://');
ws.onopen = function() {
ws.onmessage = function (evt) {

Here is the same example using the chrome websocket extension

Can logstash pass authroization tokens to web sockets? Looking at the logstash websocket plugin documentation and also the ruby-ftw ruby gem logstash is based on, I don't see any documented way to do this.

I've tried passing the token in as part of the url header, with no luck. e.g.


input {
  websocket {
    mode => client
    url => 'wss://'
output {
    codec => rubydebug

Did you solve the issue?
I guess you might have to try putting some other param name instead of 'access_token'
something like 'token'?