Skip to content

Commit

Permalink
fix broken reload
Browse files Browse the repository at this point in the history
  • Loading branch information
adnaan committed May 19, 2023
1 parent 462b78b commit 0ff26a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ func writeEvent(ws *websocket.Conn, pubsubEvent pubsub.Event) error {
reload := dom.Event{
Type: pubsubEvent.ID,
}
err := wsjson.Write(context.Background(), ws, reload)

err := wsjson.Write(context.Background(), ws, []dom.Event{reload})
if err != nil {
klog.Errorf("[writeReloadEvent] error: writing message for channel:%v, closing conn with err %v", devReloadChannel, err)
ws.Close(websocket.StatusInternalError, "closed")
Expand Down

0 comments on commit 0ff26a9

Please sign in to comment.