Can't se my messeges when i send them but they are received by the receiver

Here’s my chat controller

const Ws = use(‘Ws’)

class ChatController {
constructor ({ socket, request,auth }) {
this.socket = socket
this.request = request
this.auth = auth
}

// broadcastToAll(‘message’, message)
onMessage (message) {
var Room = use(“App/Models/Room”);
var id = this.auth.user.id;
console.log(id);
let data = message;
data = JSON.stringify(data);
const topic = Ws.getChannel(this.socket.topic).topic(this.socket.topic);
if(topic){
topic.broadcast(‘message’,message);
}
Room.create({user_id:id,roomName:this.socket.topic,data:data})
console.log(topic);
console.log(this.socket.topic,’**********’);
// console.log(this.auth.user,’^^^^^^’);
// this.socket.emitTo(‘message’,message,this.socket.topic)
// console.log(message);
}
}

module.exports = ChatController

Hi @jacinth91
It’s complicated to understand your problem. Can you improve your question (errors encountered, formatting, …)?
Thanks