Error in receiving data with web socket

Hi guys
I want to receive data with websockets from the application part using javascript, but I get the following error:

{“error”:{“grpcCode”:16,“httpCode”:401,“message”:“authentication failed: get token from context error: no authorization-data in metadata”,“httpStatus”:“Unauthorized”,“details”:[]}}

Can someone guide me so that I can send the desired token along with the websocket?
I was able to get data through Postman. But I can’t do this through the angular application.

thank you guys

I solved it.
let socket = new WebSocket(“ws://”, [“Bearer”, “{your Token}”]);