We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 172f822 commit 4e52046Copy full SHA for 4e52046
README.md
@@ -165,3 +165,31 @@ foo.renew().then(function () {
165
166
### .destroy()
167
Unbinds listeners/watchers from this client
168
+
169
+## Events
170
171
+### unlock
172
+Emits when the key is unlocked (node agnostic)
173
174
+```javascript
175
+foo.on(Microlock.events.unlocked, function () {
176
+ //handle unlocked with constant
177
+});
178
179
+foo.on('unlocked', function () {
180
+ //handle unlocked with string
181
182
+```
183
184
+### locked
185
+Emits when the key is locked (node agnostic)
186
187
188
+foo.on(Microlock.events.locked, function () {
189
+ //handle locked with constant
190
191
192
+foo.on('locked', function () {
193
+ //handle locked with string
194
195
0 commit comments