socketio端点API
发布时间
阅读量:
阅读量
const socket = io("https://example.com"); // the main namespace
const productSocket = io("https://example.com/product", { forceNew: true }); // the "product" namespace
const orderSocket = io("https://example.com/order", { forceNew: true }); // the "order" namespace
const socket = io("https://example.com", { transports: ["websocket"] });
全部评论 (0)
还没有任何评论哟~
