salmar / spring-websocket-chat

Chat application using Spring WebSockets
614 stars 316 forks source link

How to save data/messages in database like mysql, maria, postgre or mongo db #7

Closed arshadalisoomro closed 6 years ago

arshadalisoomro commented 8 years ago

I've forked the repository and found it awesome, but I can not find the way to save data to database like mysql, maria, postgre or mongo db. I've not found any resource online as well, So requesting you please add/tell support for persisting data/messages in database like mysql, maria, postgre or mongo db.

Regards : Arshad Ali Soomro.

salmar commented 6 years ago

The sample doesn't have the option to store messages on a data store, but it could be easily done with a channel interceptor or directly on the ChatController