Authentication header websocket

Hello,

I want to connect with a websocket. The server framework is Jetty. (Written in Java).
So I can connect with the websocket, but I cannot add an base64 authentication header.

When I connect with ws://user:password@localhost:8080 it say’s there is no authentication header. What are I am doing wrong?

I create a websocket with rxjs-websockets and it works fine. But I cannot see any authentication header.

How can I add this?

This is my connection code:

this.messages = websocketConnect(
    url,
    this.inputStream = new QueueingSubject<any>(),
    url => new WebSocket(url.toString()),
    false
).messages.share();

And the URL is ws://user:password@localhost:8080