6 lines
240 B
JavaScript
6 lines
240 B
JavaScript
// ws.js 的 main 函数是websocket服务的所有脚本函数执行的预处理入口
|
|
function main() {
|
|
// console.log(JSON.stringify(payload.get()))
|
|
ws.send(args[0], 'hello!')
|
|
console.log("id:", args[0], "\ndata:", args[1])
|
|
} |