UNPKG
@seriousme/opifex
Version:
latest (1.11.2)
1.11.2
1.11.1
1.11.0
1.10.1
1.9.4
1.9.3
1.9.2
1.9.0
1.8.2
1.8.1
1.8.0
1.7.1
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.0
1.3.0
1.2.1
1.2.0
1.1.0
MQTT client & server for Deno & NodeJS
github.com/seriousme/opifex
seriousme/opifex
@seriousme/opifex
/
dist
/
server
/
handlers
/
handleDisconnect.js
10 lines
•
300 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
/** * Handles client disconnection by clearing the will message and closing the connection *
@param
{
Context
}
ctx
- The connection context object *
@returns
{
void
} */
export
function
handleDisconnect
(
ctx
) { ctx.
will
=
undefined
; ctx.
close
(); }
//# sourceMappingURL=handleDisconnect.js.map