Using socket.io with nextjs 15 app router
Unanswered
West African Lion posted this in #help-forum
West African LionOP
I receive data over a POST on my /api/data route. After inserting the data in my db I want to publish these data with socket.io.
I created a custom server.ts And my frontend connects to the websocket server but how do I emit now data?
I dont get it.
I created a custom server.ts And my frontend connects to the websocket server but how do I emit now data?
I dont get it.