{"id":43768,"date":"2024-06-12T07:45:27","date_gmt":"2024-06-12T07:45:27","guid":{"rendered":"https:\/\/accuweb.cloud\/resource\/?post_type=faq&#038;p=43768"},"modified":"2026-02-18T13:11:12","modified_gmt":"2026-02-18T13:11:12","slug":"websockets-support","status":"publish","type":"faq","link":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support","title":{"rendered":"WebSockets Support"},"content":{"rendered":"<h2 class=\"ack-h2\">WebSockets Support<\/h2>\n<p>A crucial web technology called WebSockets enables constant full-duplex connections between clients and servers, facilitating rapid, two-way communication with little overhead. Your apps will operate more quickly and efficiently thanks to this TCP-based protocol, which guarantees extremely low latency and speedy interactions.<\/p>\n<p>Among the advantages of using WebSockets are:<\/p>\n<ul class=\"ack-ul\">\n<li>Reduced response delays and network traffic due to full-duplex communication through a single connection<\/li>\n<li>Ability to stream data through proxies and firewalls, both upstream and downstream<\/li>\n<li>Compatibility with older systems by switching from HTTP to WebSockets<\/li>\n<\/ul>\n<p>You can use WebSockets even if your app server doesn&#8217;t have an external IP address because the platform integrates WebSockets technology with the NGINX-balancer and Shared Load Balancer nodes.<\/p>\n<p>Placing an NGINX balancer in front of your application makes it the environment&#8217;s entry point and does away with the need for additional configurations, making it the simplest option to enable WebSockets support. Furthermore, default parameters can be readily modified using this server, including port numbers.<\/p>\n<p><a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/how-to-launch-a-new-application-on-a-new-server\/\" target=\"_blank\" rel=\"noopener\">The application servers<\/a> on the platform also support WebSockets technology.<\/p>\n<p>The following guide will walk you through configuring the NGINX-balancer node to enable WebSockets functionality for your platform-hosted application. We&#8217;ll use a straightforward PHP chat program as an example. Let&#8217;s begin by going over each step from the beginning.<\/p>\n<h2 class=\"ack-h2\">Environment Creation and Application Deployment<\/h2>\n<p>1. Log in to the platform dashboard with your credentials and click on the &#8220;<a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/the-definitive-guide-for-accuweb-cloud-dashboard\/\" target=\"_blank\" rel=\"noopener\">New Environment<\/a>&#8221; button in the top left corner.<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support01.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"ack-article-image alignnone wp-image-43774 size-full\" title=\"New Environment\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support01.png\" alt=\"New Environment\" width=\"1352\" height=\"120\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support01.png 1352w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support01-300x27.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support01-1024x91.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support01-768x68.png 768w\" sizes=\"(max-width: 1352px) 100vw, 1352px\" \/><\/a><br \/>\n2. Create an environment in the Environment Topology box according to the needs of your program (for example, we chose the Apache application server for our PHP application). The <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/how-to-configure-nginx-load-balancer-in-60-seconds\/\" target=\"_blank\" rel=\"noopener\">NGINX-balancer<\/a> node is the sole component that is necessary.<\/p>\n<p>Next, use the cloudlet sliders to specify the resource usage restrictions for the selected nodes, type the environment name (balancer-websockets, for example), and click &#8220;<strong>Create<\/strong>.&#8221;<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support02.png\"><img decoding=\"async\" class=\"ack-article-image alignnone wp-image-43775 size-full\" title=\"Environment topology\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support02.png\" alt=\"Environment topology\" width=\"1225\" height=\"759\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support02.png 1225w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support02-300x186.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support02-1024x634.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support02-768x476.png 768w\" sizes=\"(max-width: 1225px) 100vw, 1225px\" \/><\/a><br \/>\n3. In a few minutes, your new environment will appear on the dashboard.<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support03.png\"><img decoding=\"async\" class=\"ack-article-image alignnone wp-image-43776 size-full\" title=\"Created environment\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support03.png\" alt=\"Created environment\" width=\"1502\" height=\"330\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support03.png 1502w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support03-300x66.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support03-1024x225.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support03-768x169.png 768w\" sizes=\"(max-width: 1502px) 100vw, 1502px\" \/><\/a><br \/>\n4. Using an archive, URL, or remote VCS repository, upload and deploy your application to the preferred context (we&#8217;ll use the default ROOT). In-depth guidelines are available in our Deployment Guide.<\/p>\n<p>When finished, the project source name will show up in the column of the Deployed panel.<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image alignnone wp-image-43777 size-full\" title=\"Use Repository\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support04.png\" alt=\"Use Repository\" width=\"1600\" height=\"295\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support04.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support04-300x55.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support04-1024x189.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support04-768x142.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support04-1536x283.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<div class=\"article-space\"><\/div>\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t\n<div class=\"article-space\"><\/div>\n<h2 class=\"ack-h1\">NGINX Balancer Configurations<\/h2>\n<p>You now need to enable WebSockets streaming and change the default proxy settings on your <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/nginx-load-balancer-configuration\/\" target=\"_blank\" rel=\"noopener\">NGINX-balancer<\/a> server to indicate the destination for incoming requests.<\/p>\n<p><strong>1<\/strong>. Click the Config button for your balancer node to open the Configuration Manager pane.<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image alignnone wp-image-43781 size-full\" title=\"Config\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support05.png\" alt=\"Config\" width=\"1600\" height=\"300\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support05.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support05-300x56.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support05-1024x192.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support05-768x144.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support05-1536x288.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><br \/>\n<strong>2<\/strong>. Open the nginx-jelastic.conf file in the conf directory. Find the location block within the first server section and paste the following lines just before it:<\/p>\n<div class=\"article-space\"><\/div>\n<pre><code class=\"language-javascript\">\r\nlocation \/ws\/ {\r\nproxy_pass http:\/\/{appserver_ip}:{port};\r\nproxy_http_version 1.1;\r\nproxy_set_header Upgrade $http_upgrade;\r\nproxy_set_header Connection \"upgrade\";\r\n}\r\n<\/code><\/pre>\n<div class=\"article-space\"><\/div>\n<p>where<\/p>\n<p><strong>{appserver_ip}<\/strong> &#8211; The IP address of the application server node where your WebSockets application is deployed. You can find it by clicking the Additionally button for the required instance.<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support06.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image alignnone wp-image-43782 size-full\" title=\"Conf directory settings\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support06.png\" alt=\"Conf directory settings\" width=\"1600\" height=\"259\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support06.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support06-300x49.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support06-1024x166.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support06-768x124.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support06-1536x249.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><br \/>\n<strong>{port}<\/strong> &#8211; The port number your application is using.<\/p>\n<p>In our case, the required settings will look like the image below:<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image alignnone wp-image-43783 size-full\" title=\"Required Settings\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support07.png\" alt=\"Required Settings\" width=\"1417\" height=\"386\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support07.png 1417w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support07-300x82.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support07-1024x279.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support07-768x209.png 768w\" sizes=\"(max-width: 1417px) 100vw, 1417px\" \/><\/a><\/p>\n<p><strong>3<\/strong>. That&#8217;s it for the NGINX configurations. Just remember to save your changes and restart the balancer using the same-named button.<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support08.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image alignnone wp-image-43784 size-full\" title=\"Restart Node\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support08.png\" alt=\"Restart Node\" width=\"1600\" height=\"422\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support08.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support08-300x79.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support08-1024x270.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support08-768x203.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support08-1536x405.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<div class=\"article-space\"><\/div>\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t\n<div class=\"article-space\"><\/div>\n<h2 class=\"ack-h2\">Application Configurations<\/h2>\n<p>Setting up your application is the next step after turning on WebSockets support. To define the correct connection string for the new WebSocket file location, you&#8217;ll need to modify its code as follows:<\/p>\n<p><strong>1<\/strong>. Next to the application server of your choice, click the &#8220;Config&#8221; button.<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support09.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image alignnone wp-image-43785 size-full\" title=\"Config\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support09.png\" alt=\"Config\" width=\"1600\" height=\"422\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support09.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support09-300x79.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support09-1024x270.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support09-768x203.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support09-1536x405.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<p><strong>2<\/strong>. To access the files for your application, click the Configuration Manager tab and navigate to the webroot\/ROOT folder (or another folder if you provided a specific context during application deployment).<\/p>\n<p>Open the file containing the WebSockets settings and adjust the `ws` path in the following format:<\/p>\n<p>ws:\/\/<strong>{env_domain}{path_to_ws_file}<\/strong><\/p>\n<p>Replace `{env_domain}` with your environment&#8217;s domain (found under the environment name on the dashboard), and `{path_to_ws_file}` with the path to the file that needs to be accessed when establishing the WebSockets connection.<\/p>\n<p>For example, in our case, this string looks like the following:<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image alignnone wp-image-43786 size-full\" title=\"WebSockets Settings\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support10.png\" alt=\"WebSockets Settings\" width=\"1600\" height=\"523\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support10.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support10-300x98.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support10-1024x335.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support10-768x251.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support10-1536x502.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<p>Remember to save the modifications you made.<\/p>\n<p>Lastly, to implement the updated configurations, use the relevant button to restart your application server.<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image alignnone wp-image-43787 size-full\" title=\"Restart Node\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support11.png\" alt=\"Restart Node\" width=\"1600\" height=\"422\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support11.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support11-300x79.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support11-1024x270.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support11-768x203.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support11-1536x405.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><br \/>\n<strong>4<\/strong>. To access your application, click <strong>&#8220;Open in Browser&#8221;<\/strong> next to your environment once the service has restarted.<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image alignnone wp-image-43788 size-full\" title=\"Open in Browser\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support12.png\" alt=\"Open in Browser\" width=\"1600\" height=\"245\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support12.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support12-300x46.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support12-1024x157.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support12-768x118.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support12-1536x235.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><br \/>\n<strong>5<\/strong>. Great, the process is completed!<br \/>\n<a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image alignnone wp-image-43789 size-full\" title=\"Connected\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support13.png\" alt=\"Connected\" width=\"1600\" height=\"288\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support13.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support13-300x54.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support13-1024x184.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support13-768x138.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/WSockets-Support13-1536x276.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><br \/>\nOur chat window is now functioning properly, as you can see. You don&#8217;t have to reload the browser tab to send and receive messages in real time.<\/p>\n<div class=\"cta-btn-top-space\"><\/div>\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t\n<div class=\"cta-btn-mob-space\"><\/div>\n","protected":false},"author":1,"featured_media":52879,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","class_list":["post-43768","faq","type-faq","status-publish","has-post-thumbnail","hentry","faq_topics-development-tools","faq_topics-kb","faq_topics-product-documentation","faq_topics-websockets","faq_topics-websockets-support"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.10 (Yoast SEO v24.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WebSocket Support Simplified | AccuWeb.Cloud<\/title>\n<meta name=\"description\" content=\"Learn how to increase app performance and two-way communication with WebSockets support. Follow our guide to enable WebSockets functionality.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WebSockets Support\" \/>\n<meta property=\"og:description\" content=\"Learn how to increase app performance and two-way communication with WebSockets support. Follow our guide to enable WebSockets functionality.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\" \/>\n<meta property=\"og:site_name\" content=\"AccuWeb Cloud\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-18T13:11:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\"},\"author\":{\"name\":\"Jilesh Patadiya\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\"},\"headline\":\"WebSockets Support\",\"datePublished\":\"2024-06-12T07:45:27+00:00\",\"dateModified\":\"2026-02-18T13:11:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\"},\"wordCount\":732,\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"inLanguage\":\"en-US\"},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\",\"url\":\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/\",\"name\":\"WebSocket Support Simplified | AccuWeb.Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"datePublished\":\"2024-06-12T07:45:27+00:00\",\"dateModified\":\"2026-02-18T13:11:12+00:00\",\"description\":\"Learn how to increase app performance and two-way communication with WebSockets support. Follow our guide to enable WebSockets functionality.\",\"breadcrumb\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#primaryimage\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/accuweb.cloud\/resource\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WebSockets Support\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"name\":\"AccuWeb Cloud\",\"description\":\"Cutting Edge Cloud Computing\",\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\",\"name\":\"AccuWeb.Cloud\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"width\":156,\"height\":87,\"caption\":\"AccuWeb.Cloud\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\",\"name\":\"Jilesh Patadiya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"caption\":\"Jilesh Patadiya\"},\"description\":\"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.\",\"sameAs\":[\"https:\/\/accuweb.cloud\/resource\",\"https:\/\/www.facebook.com\/accuwebhosting\",\"https:\/\/www.instagram.com\/accuwebhosting\/\",\"https:\/\/www.linkedin.com\/company\/accuwebhosting\/\",\"https:\/\/x.com\/accuwebhosting\",\"https:\/\/www.youtube.com\/c\/Accuwebhosting\"],\"url\":\"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"WebSocket Support Simplified | AccuWeb.Cloud","description":"Learn how to increase app performance and two-way communication with WebSockets support. Follow our guide to enable WebSockets functionality.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support","og_locale":"en_US","og_type":"article","og_title":"WebSockets Support","og_description":"Learn how to increase app performance and two-way communication with WebSockets support. Follow our guide to enable WebSockets functionality.","og_url":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support","og_site_name":"AccuWeb Cloud","article_modified_time":"2026-02-18T13:11:12+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#article","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support"},"author":{"name":"Jilesh Patadiya","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58"},"headline":"WebSockets Support","datePublished":"2024-06-12T07:45:27+00:00","dateModified":"2026-02-18T13:11:12+00:00","mainEntityOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support"},"wordCount":732,"publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","inLanguage":"en-US"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support","url":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/","name":"WebSocket Support Simplified | AccuWeb.Cloud","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/#website"},"primaryImageOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#primaryimage"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","datePublished":"2024-06-12T07:45:27+00:00","dateModified":"2026-02-18T13:11:12+00:00","description":"Learn how to increase app performance and two-way communication with WebSockets support. Follow our guide to enable WebSockets functionality.","breadcrumb":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#primaryimage","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/accuweb.cloud\/resource\/articles\/websockets-support\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/accuweb.cloud\/resource\/"},{"@type":"ListItem","position":2,"name":"WebSockets Support"}]},{"@type":"WebSite","@id":"https:\/\/accuweb.cloud\/resource\/#website","url":"https:\/\/accuweb.cloud\/resource\/","name":"AccuWeb Cloud","description":"Cutting Edge Cloud Computing","publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/accuweb.cloud\/resource\/#organization","name":"AccuWeb.Cloud","url":"https:\/\/accuweb.cloud\/resource\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","width":156,"height":87,"caption":"AccuWeb.Cloud"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58","name":"Jilesh Patadiya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","caption":"Jilesh Patadiya"},"description":"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.","sameAs":["https:\/\/accuweb.cloud\/resource","https:\/\/www.facebook.com\/accuwebhosting","https:\/\/www.instagram.com\/accuwebhosting\/","https:\/\/www.linkedin.com\/company\/accuwebhosting\/","https:\/\/x.com\/accuwebhosting","https:\/\/www.youtube.com\/c\/Accuwebhosting"],"url":"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin"}]}},"_links":{"self":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/43768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/comments?post=43768"}],"version-history":[{"count":9,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/43768\/revisions"}],"predecessor-version":[{"id":53138,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/43768\/revisions\/53138"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media\/52879"}],"wp:attachment":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media?parent=43768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}