Pass link to plugin message handlers

For master plugins a message can be received from any of the clients
corrently connected to the master.  In order for plugins to be able to
handle link specific requests they need a reference to the link messages
was received from.  Add link as the third argument to plugin message
handlers.
This commit is contained in:
Hornwitser committed 2021-03-20 03:35:05 +01:00
1 parent 48786f1e59
commit de629d9416
1 file changed
+1 -1
+1 -1
View File
@@ -530,7 +530,7 @@ function attachPluginMessages(link, plugin) {
messageFormat.attach(link);
} else {
messageFormat.attach(link, async (message, format) => await plugin[handler](message, format));
messageFormat.attach(link, async (message, format) => await plugin[handler](message, format, link));
}
} catch (err) {