Skip to content

Commit

Permalink
fix: added payload to onPacketreceive and onPacketsend. Fixes #235
Browse files Browse the repository at this point in the history
  • Loading branch information
sclausen committed Jul 2, 2023
1 parent 1794a1b commit 75923af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/ngx-mqtt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-mqtt",
"version": "16.0.0",
"version": "16.1.0",
"license": "MIT",
"peerDependencies": {
"@angular/common": "^16.0.3",
Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-mqtt/src/lib/mqtt.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ export class MqttService {
}

private _handleOnPacketsend = (e: IOnPacketsendEvent) => {
this._onPacketsend.emit();
this._onPacketsend.emit(e);
}

private _handleOnPacketreceive = (e: IOnPacketreceiveEvent) => {
this._onPacketreceive.emit();
this._onPacketreceive.emit(e);
}

private _generateClientId() {
Expand Down

0 comments on commit 75923af

Please sign in to comment.