DEV Community

Discussion on: Make a chat app with Node JS

Collapse
 
bradstondev profile image
Bradston Henry

I don't have any experience with Prisma but you should be able to message a specific client in Socket using the Client's ID (which would be managed on your Node Server).

This is the socket documentation that talks about a client talking directly to a client: socket.io/docs/v4/server-socket-in...

Only think I would note is that is has become my practice to have a object that connects my Socket generated Client ID to the my custom created user IDs. That way I can always correlate the two when a client is connected to the server.