uci-socket/test/sockets/tcp-process.mjs

6 lines
147 B
JavaScript

export default async function (packet) {
// console.log(this.context)
packet.payload = this.context.port +':'+packet.payload
return packet
}