Skip to content

Commit 265cba7

Browse files
authored
fix wsdp.wsDataSource.customHeaders
1 parent 20a3a95 commit 265cba7

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
4+
## 1.0.63
5+
6+
WebSocket Data Source Plugin Launch added connection string in header fix
7+
38
## 1.0.62
49

510
WebSocket Data Source Plugin Launch added connection string and fix plugin name

pkg/plugin/ws_data_proxy.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ func (wsdp *wsDataProxy) wsConnect() (*websocket.Conn, error) {
135135
return nil, err
136136
}
137137
log.DefaultLogger.Info("Ws Connect", "connected to", wsdp.wsUrl)
138-
//wsdp.wsDataSource.customQueryParameters
139-
if val, ok := wsdp.wsDataSource.customQueryParameters["Connectionstring"]; ok {
140-
log.DefaultLogger.Info("Ws Connect", "connected to Connectionstring", val)
138+
//wsdp.wsDataSource.customHeaders solved
139+
if val, ok := wsdp.wsDataSource.customHeaders["Connectionstring"]; ok {
140+
log.DefaultLogger.Info("Ws Connect --customHeaders--", "connected to Connectionstring", val)
141141
// send connection string
142142
stringJSON := `{"id":1}`
143143
err1 := c.WriteMessage(websocket.TextMessage, []byte(stringJSON))

src/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{"name": "Websockets Payloads", "path": "img/assets/grafana-websockets-graphing.png"},
3434
{"name": "Streaming", "path": "img/assets/grafana-websockets-plugin-streaming.png"}
3535
],
36-
"version": "1.0.62",
36+
"version": "1.0.63",
3737
"updated": "%TODAY%"
3838
},
3939
"dependencies": {

0 commit comments

Comments
 (0)