Advertisement

socketio端点API

阅读量:

1、Client options | Socket.IO

2、Client API | Socket.IO

复制代码
 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)

还没有任何评论哟~