mosquitto 1.4.2 + mysql connection

Asked by RyujiHoon

OS version - CentOS 6.5
mosquitto version - 1.4.2
mysql - 5.6.26

I use the web socket at Mosquito.

Web (chat client) <- -> mosquitto <-> web (chat client)

To make such a system being

When the client and chat
 all of them chatting in mosquitto broker
 I would like to insert in the Database.
 Specifically, I want to know what needs to operate in any way.

i install mosquitto-auth-plugin but I do not know how to insert it

Question information

Language:
English Edit question
Status:
Solved
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Solved by:
Roger Light
Solved:
Last query:
Last reply:
Revision history for this message
Best Roger Light (roger.light) said :
#1

You can't do this directly in mosquitto without writing your own code. If you want to do that, the place to do so would be around the mqtt3_handle_publish() function.

mosquitto-auth-plugin is just for authentication and access control.

Revision history for this message
RyujiHoon (qiqb123) said :
#2

Thanks Roger Light, that solved my question.