Skip to content

Commit

Permalink
test(binding-modbus): use correct socketError event name
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jul 10, 2024
1 parent a84e337 commit 6a9a7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/binding-modbus/test/test-modbus-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class ModbusServer {

public start(): Promise<unknown> {
return new Promise((resolve) => {
this.serverTCP.on("SocketError", (err: Error | null) => {
this.serverTCP.on("socketError", (err: Error | null) => {
// Handle socket error if needed, can be ignored
error("SocketError:", err?.toString());
});
Expand Down

0 comments on commit 6a9a7e0

Please sign in to comment.