I would really like to switch from Baojs to Elysia, but i need the websocket headers to authenticate the messages
"raw": ServerWebSocket {
"binaryType": "uint8array",
"close": [Function: close],
"cork": [Function: cork],
"data": {
"request": Request (0 KB) {
method: "GET",
url: "http://localhost:3005/search/proxy_search_wsp/1"
},
"store": {},
"set": {
"headers": {},
"status": 200
},
"publish": {
"name": "publish"
},
"query": -1,
"params": {
"wsp": "1"
},
"id": 1684826648522,
"message": undefined,
"transformMessage": []
},
"getBufferedAmount": [Function: getBufferedAmount],
"isSubscribed": [Function: isSubscribed],
"publish": [Function: publish],
"publishBinary": [Function: publishBinary],
"publishText": [Function: publishText],
"readyState": 1,
"remoteAddress": "127.0.0.1",
"send": [Function: send],
"sendBinary": [Function: sendBinary],
"sendText": [Function: sendText],
"subscribe": [Function: subscribe],
"unsubscribe": [Function: unsubscribe]
},
"data": {
"request": Request (0 KB) {
method: "GET",
url: "http://localhost:3005/search/proxy_search_wsp/1"
},
"store": {},
"set": {
"headers": {},
"status": 200
},
"publish": {
"name": "publish"
},
"query": -1,
"params": {
"wsp": "1"
},
"id": 1684826648522,
"message": undefined,
"transformMessage": []
},
"isSubscribed": [Function: isSubscribed],
"publish": [Function: publish],
"publishToSelf": [Function: publishToSelf],
"send": [Function: send],
"subscribe": [Function: subscribe],
"unsubscribe": [Function: unsubscribe],
"cork": [Function: cork],
"close": [Function: close]
} {
"term": "tt"
}