Create a chat with strapi

System Information
  • Strapi Version: 3.3.4
  • Operating System:
  • Database: Mongo
  • Node Version: 12.16.1
  • NPM Version:
  • Yarn Version: 1.19.1

I would like to know if there a way to create a chat discussion system with strapi ?
I would like an basic user can discuss about a content type created by an author user, and of course the user author can answer to the basic user with the strapi BO.

Hi there Jean1
someone has written about this on medium: Adding Real-Time in Strapi with | by Adfab 🚀 | Strapi | Medium
comes down to using for real time

This not work anymore, When i copy the code to boostrap.js i have error

[2021-02-24T01:51:54.546Z] error TypeError: cb is not a function

@Jean1 This is how I integrated with strapi

filename: bootstrap.js

module.exports = async () => {
  process.nextTick(() => {
    const io = require('')(strapi.server);
    io.on('connection', async (socket) => {
      // new connection
1 Like