Skip to content

Commit 7dfd343

Browse files
committed
Optimization
1 parent 571226d commit 7dfd343

File tree

2 files changed

+163
-181
lines changed

2 files changed

+163
-181
lines changed

src/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function trigger($channels, $event, $data, $socket_id = null)
4646
}
4747
$query_params = array();
4848
$s_url = $this->_settings['base_path'] . '/events';
49-
$data_encoded = json_encode($data);
49+
$data_encoded = json_encode($data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
5050
$post_params = array();
5151
$post_params['name'] = $event;
5252
$post_params['data'] = $data_encoded;

0 commit comments

Comments
 (0)