About 576 results
Open links in new tab
  1. Socket.IO

    Jul 25, 2024 · Performant In most cases, the connection will be established with WebSocket, providing a low-overhead communication channel between the server and the client.

  2. Introduction | Socket.IO

    Although Socket.IO indeed uses WebSocket for transport when possible, it adds additional metadata to each packet. That is why a WebSocket client will not be able to successfully connect to a Socket.IO …

  3. Server API - Socket.IO

    The mechanics of joining rooms are handled by the Adapter that has been configured (see Server#adapter above), defaulting to socket.io-adapter. For your convenience, each socket …

  4. Server Initialization - Socket.IO

    Once you have installed the Socket.IO server library, you can now init the server. The complete list of options can be found here.

  5. The Socket instance (server-side) | Socket.IO

    The Socket instance (server-side) A Socket is the fundamental class for interacting with the client. It inherits all the methods of the Node.js EventEmitter, like emit, on, once or removeListener. Besides: …

  6. The Server instance - Socket.IO

    The Server instance (often called io in the code examples) has a few attributes that may be of use in your application. It also inherits all the methods of the main namespace, like namespace.use() (see …

  7. How it works - Socket.IO

    The bidirectional channel between the Socket.IO server (Node.js) and the Socket.IO client (browser, Node.js, or another programming language) is established with a WebSocket connection whenever …

  8. Get started - Socket.IO

    The main idea behind Socket.IO is that you can send and receive any events you want, with any data you want. Any objects that can be encoded as JSON will do, and binary data is supported too.

  9. Server options - Socket.IO

    Using a small value like 1000 (one heartbeat per second) will incur some load on your server, which might become noticeable with a few thousands connected clients.

  10. Get started | Socket.IO

    check the latency of the Socket.IO connection upload a file register a global middleware build a basic Socket.IO client implement a subscription model handle EADDRINUSE errors use with Passport.js …