Skip to content

Commit 7821dc3

Browse files
authored
Merge pull request #1053 from Anisan/patch-2
Websocket: send data subscribed
2 parents bfe8aba + 9378069 commit 7821dc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/websockets/server/lib/WebSocket/Application/MajordomoApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ private function _actionSubscribe($data, $client_id)
252252
}
253253
}
254254

255-
$send_data = array();
255+
$send_data = $data;
256256
$encodedData = $this->_encodeData('subscribed', json_encode($send_data));
257257
$this->_clients[$client_id]->send($encodedData);
258258
}

0 commit comments

Comments
 (0)