Closed kwaitsing closed 9 months ago
It should probably be in ws.data.ip
https://elysiajs.com/patterns/websocket#message
Ah great, thank you Post my code here in case someone need it
.ws('/api/upload/:servername/:key', {
message(ws, message) {
const { servername, key } = ws.data.params;
ws.send(processNodeData(nodeData, message, servername, key, conf, ws.data.ip.address))
}
})
Where should i add it to?