PageSourceSearch

https://socket.io/assets/js/82c30fbe.ea037f87.js

js socket.io collected 2026-09-24 07:26:30 UTC 7,406 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksample_website=self.webpackChunksample_website||[]).push([[7049],{3905:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>h});var a=r(7294);function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var i=a.createContext({}),p=function(e){var t=a.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},c=function(e){var t=p(e.components);return a.createElement(i.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,i=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=p(r),m=n,h=d["".concat(i,".").concat(m)]||d[m]||u[m]||o;return r?a.createElement(h,l(l({ref:t},c),{},{components:r})):a.createElement(h,l({ref:t},c))}));function h(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,l=new Array(o);l[0]=m;var s={};for(var i in t)hasOwnProperty.call(t,i)&&(s[i]=t[i]);s.originalType=e,s[d]="string"==typeof e?e:n,l[1]=s;for(var p=2;p<o;p++)l[p]=r[p];return a.createElement.apply(null,l)}return a.createElement.apply(null,r)}m.displayName="MDXCreateElement"},3782:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>i,contentTitle:()=>l,default:()=>u,frontMatter:()=>o,metadata:()=>s,toc:()=>p});var a=r(3117),n=(r(7294),r(3905));const o={title:"Glossary",sidebar_position:2,slug:"/glossary/"},l=void 0,s={unversionedId:"categories/Miscellaneous/glossary",id:"categories/Miscellaneous/glossary",title:"Glossary",description:"We will list here the terms that are related to the Socket.IO ecosystem:",source:"@site/docs/categories/08-Miscellaneous/glossary.md",sourceDirName:"categories/08-Miscellaneous",slug:"/glossary/",permalink:"/docs/v4/glossary/",draft:!1,editUrl:"https://github.com/socketio/socket.io-website/edit/main/docs/categories/08-Miscellaneous/glossary.md",tags:[],version:"current",lastUpdatedAt:1784117104,formattedLastUpdatedAt:"Jul 15, 2026",sidebarPosition:2,frontMatter:{title:"Glossary",sidebar_position:2,slug:"/glossary/"},sidebar:"sidebar",previous:{title:"FAQ",permalink:"/docs/v4/faq/"},next:{title:"The Engine.IO protocol",permalink:"/docs/v4/engine-io-protocol/"}},i={},p=[{value:"Adapter",id:"adapter",level:2},{value:"Engine.IO",id:"engineio",level:2},{value:"Namespace",id:"namespace",level:2},{value:"Room",id:"room",level:2},{value:"Transport",id:"transport",level:2}],c={toc:p},d="wrapper";
1function u(e){let{components:t,...r}=e;return(0,n.kt)(d,(0,a.Z)({},c,r,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("p",null,"We will list here the terms that are related to the Socket.IO ecosystem:"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},(0,n.kt)("a",{parentName:"li",href:"#adapter"},"Adapter")),(0,n.kt)("li",{parentName:"ul"},(0,n.kt)("a",{parentName:"li",href:"#engineio"},"Engine.IO")),(0,n.kt)("li",{parentName:"ul"},(0,n.kt)("a",{parentName:"li",href:"#namespace"},"Namespace")),(0,n.kt)("li",{parentName:"ul"},(0,n.kt)("a",{parentName:"li",href:"#room"},"Room")),(0,n.kt)("li",{parentName:"ul"},(0,n.kt)("a",{parentName:"li",href:"#transport"},"Transport"))),(0,n.kt)("h2",{id:"adapter"},"Adapter"),(0,n.kt)("p",null,"An Adapter is a server-side component which is responsible for:"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},"storing the relationships between the Socket instances and the ",(0,n.kt)("a",{parentName:"li",href:"/docs/v4/rooms/"},"rooms")),(0,n.kt)("li",{parentName:"ul"},"broadcasting events to ",(0,n.kt)("a",{parentName:"li",href:"/docs/v4/broadcasting-events/"},"all")," (or a subset of) clients")),(0,n.kt)("p",null,"Besides the ",(0,n.kt)("a",{parentName:"p",href:"https://github.com/socketio/socket.io-adapter/"},"in-memory adapter")," which is included by default with the Socket.IO server, there are currently 5 official adapters:"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},"the ",(0,n.kt)("a",{parentName:"li",href:"/docs/v4/redis-adapter/"},"Redis adapter")),(0,n.kt)("li",{parentName:"ul"},"the ",(0,n.kt)("a",{parentName:"li",href:"/docs/v4/redis-streams-adapter/"},"Redis Streams adapter")),(0,n.kt)("li",{parentName:"ul"},"the ",(0,n.kt)("a",{parentName:"li",href:"/docs/v4/mongo-adapter/"},"MongoDB adapter")),(0,n.kt)("li",{parentName:"ul"},"the ",(0,n.kt)("a",{parentName:"li",href:"/docs/v4/postgres-adapter/"},"Postgres adapter")),(0,n.kt)("li",{parentName:"ul"},"the ",(0,n.kt)("a",{parentName:"li",href:"/docs/v4/cluster-adapter/"},"Cluster adapter"))),(0,n.kt)("p",null,"The in-memory adapter can be extended to add support for other messaging systems, like RabbitMQ or Google Pub/Sub for example."),(0,n.kt)("p",null,"Please see the documentation ",(0,n.kt)("a",{parentName:"p",href:"/docs/v4/adapter/"},"here"),"."),(0,n.kt)("h2",{id:"engineio"},"Engine.IO"),(0,n.kt)("p",null,"Engine.IO is an internal component of Socket.IO, which is responsible for establishing the low-level connection between the server and the client."),(0,n.kt)("p",null,"You will find more information ",(0,n.kt)("a",{parentName:"p",href:"/docs/v4/how-it-works/"},"here"),"."),(0,n.kt)("h2",{id:"namespace"},"Namespace"),(0,n.kt)("p",null,"A Namespace is a concept that allows splitting the application logic on the server-side."),(0,n.kt)("p",null,"Please see the documentation ",(0,n.kt)("a",{parentName:"p",href:"/docs/v4/namespaces/"},"here"),"."),(0,n.kt)("h2",{id:"room"},"Room"),(0,n.kt)("p",null,"A Room is a server-side concept that allows broadcasting data to a subset of clients."),(0,n.kt)("p",null,"Please see the documentation ",(0,n.kt)("a",{parentName:"p",href:"/docs/v4/rooms/"},"here"),"."),(0,n.kt)("h2",{id:"transport"},"Transport"),(0,n.kt)("p",null,"A Transport represents the low-level way of establishing a connection between the server and the client."),(0,n.kt)("p",null,"There are currently three implemented transports:"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},"HTTP long-polling"),(0,n.kt)("li",{parentName:"ul"},(0,n.kt)("a",{parentName:"li",href:"https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API"},"WebSocket")),(0,n.kt)("li",{parentName:"ul"},(0,n.kt)("a",{parentName:"li",href:"https://developer.mozilla.org/en-US/docs/Web/API/WebTransport_API"},"WebTransport"))),(0,n.kt)("p",null,"Please see the documentation ",(0,n.kt)("a",{parentName:"p",href:"/docs/v4/how-it-works/#transports"},"here"),"."))}u.isMDXComponent=!0}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.