{"id":98165,"date":"2025-02-19T13:22:44","date_gmt":"2025-02-19T09:52:44","guid":{"rendered":"https:\/\/nabfollower.com\/blog\/how-to-implement-socket-communication-in-unreal-engine-and-nodejs-4m0j\/"},"modified":"2025-02-19T13:22:44","modified_gmt":"2025-02-19T09:52:44","slug":"how-to-implement-socket-communication-in-unreal-engine-and-nodejs-4m0j","status":"publish","type":"post","link":"https:\/\/nabfollower.com\/blog\/how-to-implement-socket-communication-in-unreal-engine-and-nodejs-4m0j\/","title":{"rendered":"\u0646\u062d\u0648\u0647 \u0627\u062c\u0631\u0627\u06cc \u0627\u0631\u062a\u0628\u0627\u0637\u0627\u062a \u0633\u0648\u06a9\u062a \u062f\u0631 \u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u0648 Node.js"},"content":{"rendered":"<div data-article-id=\"2287335\" id=\"article-body\">\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u060c \u0645\u0627 \u0686\u06af\u0648\u0646\u06af\u06cc \u0627\u062c\u0631\u0627\u06cc \u0627\u0631\u062a\u0628\u0627\u0637\u0627\u062a \u0633\u0648\u06a9\u062a \u0628\u06cc\u0646 \u0633\u0631\u0648\u0631 Node.js \u0648 \u0647\u0631 \u062f\u0648 \u0645\u0648\u062a\u0648\u0631 Unreal 5 (UE5) \u0648 \u0648\u062d\u062f\u062a \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 WebSockets \u0628\u0631\u0631\u0633\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u062f\u0631 \u062d\u0627\u0644\u06cc \u06a9\u0647 \u0647\u0631 \u062f\u0648 \u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u0648 \u0648\u062d\u062f\u062a \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0647\u0627\u06cc \u0639\u0627\u0644\u06cc \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u062f\u0631 \u0632\u0645\u0627\u0646 \u0648\u0627\u0642\u0639\u06cc \u0647\u0633\u062a\u0646\u062f \u060c \u0647\u0631 \u06cc\u06a9 \u0627\u0632 \u0622\u0646\u0647\u0627 \u0631\u0648\u0634 \u0647\u0627\u06cc \u0645\u0646\u062d\u0635\u0631 \u0628\u0647 \u0641\u0631\u062f\u06cc \u0628\u0631\u0627\u06cc \u062f\u0633\u062a\u06cc\u0627\u0628\u06cc \u0628\u0647 \u0627\u0631\u062a\u0628\u0627\u0637\u0627\u062a \u0633\u0648\u06a9\u062a \u062f\u0627\u0631\u0646\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u0639\u0644\u0645\u06cc \u06a9\u0647 \u06cc\u06a9 \u0631\u0648\u06cc\u06a9\u0631\u062f \u0628\u0627 \u0648\u0641\u0627\u062f\u0627\u0631\u06cc \u0648 \u0628\u0635\u0631\u06cc \u063a\u0648\u0637\u0647 \u0648\u0631\u06cc \u0631\u0627 \u062a\u0634\u0648\u06cc\u0642 \u0645\u06cc \u06a9\u0646\u062f \u060c \u0627\u0632 \u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u0641\u06a9\u0631 \u06a9\u0646\u06cc\u062f \u060c \u062f\u0631 \u062d\u0627\u0644\u06cc \u06a9\u0647 \u0648\u062d\u062f\u062a \u062a\u0645\u0627\u06cc\u0644 \u062f\u0627\u0631\u062f \u06a9\u0645\u06cc \u0633\u0627\u062f\u0647 \u062a\u0631 \u0648 \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u0633\u0631\u06cc\u0639 \u0628\u0627\u0634\u062f.<\/p>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0628\u067e\u0631\u062f\u0627\u0632\u06cc\u0645 \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0631\u062a\u0628\u0627\u0637\u0627\u062a \u0633\u0648\u06a9\u062a \u0631\u0627 \u062f\u0631 \u0647\u0631 \u062f\u0648 \u0645\u0648\u062a\u0648\u0631 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0628\u06cc\u0646\u06cc\u0645 \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0633\u0628\u06a9 \u0647\u0627\u06cc \u0622\u0645\u0648\u0632\u0634\u06cc \u0645\u0646\u062d\u0635\u0631 \u0628\u0647 \u0641\u0631\u062f \u0622\u0646\u0647\u0627 \u0628\u0627\u0632\u06cc \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter-rtl ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0641\u0647\u0631\u0633\u062a \u0645\u0637\u0627\u0644\u0628<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/nabfollower.com\/blog\/how-to-implement-socket-communication-in-unreal-engine-and-nodejs-4m0j\/#%D9%BE%DB%8C%D8%B4_%D9%86%DB%8C%D8%A7%D8%B2%D9%87%D8%A7%DB%8C\" >\u067e\u06cc\u0634 \u0646\u06cc\u0627\u0632\u0647\u0627\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/nabfollower.com\/blog\/how-to-implement-socket-communication-in-unreal-engine-and-nodejs-4m0j\/#1_%D8%AA%D9%86%D8%B8%DB%8C%D9%85_%D8%B3%D8%B1%D9%88%D8%B1_Nodejs_WebSocket\" >1. \u062a\u0646\u0638\u06cc\u0645 \u0633\u0631\u0648\u0631 Node.js WebSocket<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/nabfollower.com\/blog\/how-to-implement-socket-communication-in-unreal-engine-and-nodejs-4m0j\/#2_%D9%85%D9%88%D8%AA%D9%88%D8%B1_Unreal_5_WebSocket_Client\" >2. \u0645\u0648\u062a\u0648\u0631 Unreal 5 WebSocket Client<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/nabfollower.com\/blog\/how-to-implement-socket-communication-in-unreal-engine-and-nodejs-4m0j\/#3_%D9%85%D8%B4%D8%AA%D8%B1%DB%8C_Unity_WebSocket_%D8%A8%D8%B1%D8%A7%DB%8C_%D9%85%D9%82%D8%A7%DB%8C%D8%B3%D9%87\" >3. \u0645\u0634\u062a\u0631\u06cc Unity WebSocket (\u0628\u0631\u0627\u06cc \u0645\u0642\u0627\u06cc\u0633\u0647)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/nabfollower.com\/blog\/how-to-implement-socket-communication-in-unreal-engine-and-nodejs-4m0j\/#4_%D9%85%D9%82%D8%A7%DB%8C%D8%B3%D9%87_%D9%85%D9%88%D8%AA%D9%88%D8%B1_%D8%BA%DB%8C%D8%B1_%D9%88%D8%A7%D9%82%D8%B9%DB%8C_%D9%88_%D9%88%D8%AD%D8%AF%D8%AA_%D8%AF%D9%88_%D9%85%D8%B9%D9%84%D9%85_%D8%A8%D8%A7_%D8%B3%D8%A8%DA%A9_%D9%87%D8%A7%DB%8C_%D9%85%D8%AE%D8%AA%D9%84%D9%81\" >4. \u0645\u0642\u0627\u06cc\u0633\u0647 \u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u0648 \u0648\u062d\u062f\u062a: \u062f\u0648 \u0645\u0639\u0644\u0645 \u0628\u0627 \u0633\u0628\u06a9 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/nabfollower.com\/blog\/how-to-implement-socket-communication-in-unreal-engine-and-nodejs-4m0j\/#5_%D9%86%D8%AA%DB%8C%D8%AC%D9%87_%DA%AF%DB%8C%D8%B1%DB%8C\" >5. \u0646\u062a\u06cc\u062c\u0647 \u06af\u06cc\u0631\u06cc<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%D9%BE%DB%8C%D8%B4_%D9%86%DB%8C%D8%A7%D8%B2%D9%87%D8%A7%DB%8C\"><\/span>\n<p>  <strong>\u067e\u06cc\u0634 \u0646\u06cc\u0627\u0632\u0647\u0627\u06cc<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0642\u0628\u0644 \u0627\u0632 \u0634\u0631\u0648\u0639 \u060c \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0645\u0648\u0627\u0631\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f:<\/p>\n<ul>\n<li>\n<p>node.js \u0648 npm: node.js \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f<\/p>\n<\/li>\n<li>\n<p>\u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc 5 (UE5)<\/p>\n<\/li>\n<li>\n<p>\u0648\u062d\u062f\u062a (\u0628\u0631\u0627\u06cc \u0645\u0642\u0627\u06cc\u0633\u0647)<\/p>\n<\/li>\n<li>\n<p>\u0648\u06cc\u0698\u0648\u0627\u0644 \u0627\u0633\u062a\u0648\u062f\u06cc\u0648 (\u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc)<\/p>\n<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"1_%D8%AA%D9%86%D8%B8%DB%8C%D9%85_%D8%B3%D8%B1%D9%88%D8%B1_Nodejs_WebSocket\"><\/span>\n<p>  1. \u062a\u0646\u0638\u06cc\u0645 \u0633\u0631\u0648\u0631 Node.js WebSocket<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u0627\u0628\u062a\u062f\u0627 \u06cc\u06a9 \u0633\u0631\u0648\u0631 WebSocket \u0633\u0627\u062f\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 WS \u060c \u06cc\u06a9 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0645\u062d\u0628\u0648\u0628 WebSocket \u0628\u0631\u0627\u06cc Node.js. \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645. \u0627\u06cc\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 &#8220;\u0645\u0639\u0644\u0645&#8221; \u0645\u0627 \u062f\u0631 \u0627\u06cc\u0646 \u0642\u06cc\u0627\u0633 \u0639\u0645\u0644 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u062f\u0631\u0633 (\u067e\u06cc\u0627\u0645) \u0631\u0627 \u0628\u0647 \u062f\u0627\u0646\u0634 \u0622\u0645\u0648\u0632\u0627\u0646 \u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u0648 \u0648\u062d\u062f\u062a \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f.<\/p>\n<p>\u0646\u0635\u0628 <code>ws<\/code> \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647:<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>npm init -y\nnpm install ws\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0633\u0631\u0648\u0631 WebSocket \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f (<code>server.js<\/code>):<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>const WebSocket = require('ws');\n\nconst wss = new WebSocket.Server({ port: 8080 });\n\nwss.on('connection', ws =&gt; {\n  console.log('New connection established');\n\n  ws.on('message', message =&gt; {\n    console.log(`Received message: ${message}`);\n    \/\/ Send back a response to the client\n    ws.send('Message received by Node.js server!');\n  });\n\n  ws.on('close', () =&gt; {\n    console.log('Connection closed');\n  });\n});\n\n\/\/ Handle server errors\nwss.on('error', err =&gt; {\n  console.error('WebSocket Server Error:', err);\n});\n\nconsole.log('WebSocket server running on ws:\/\/localhost:8080');\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0633\u0631\u0648\u0631 WebSocket \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>node server.js\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0627\u06a9\u0646\u0648\u0646 \u0622\u0645\u0627\u062f\u0647 \u0648 \u0642\u0627\u062f\u0631 \u0628\u0647 \u062f\u0631\u06cc\u0627\u0641\u062a \u0648 \u067e\u0627\u0633\u062e \u062f\u0627\u062f\u0646 \u0628\u0647 \u067e\u06cc\u0627\u0645 \u0647\u0627\u06cc \u0645\u0634\u062a\u0631\u06cc \u0647\u0627\u06cc \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u0648 Unity \u0627\u0633\u062a.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"2_%D9%85%D9%88%D8%AA%D9%88%D8%B1_Unreal_5_WebSocket_Client\"><\/span>\n<p>  2. \u0645\u0648\u062a\u0648\u0631 Unreal 5 WebSocket Client<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062d\u0627\u0644 \u0628\u06cc\u0627\u06cc\u06cc\u062f \u0628\u0628\u06cc\u0646\u06cc\u0645 \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 &#8220;\u062f\u0627\u0646\u0634 \u0622\u0645\u0648\u0632&#8221; \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u06cc \u0634\u0648\u062f \u060c \u0622\u0645\u0627\u062f\u0647 \u062f\u0631\u06cc\u0627\u0641\u062a \u062f\u0631\u0633 (\u067e\u06cc\u0627\u0645) \u0648 \u0628\u0627 \u0627\u0633\u062a\u0639\u062f\u0627\u062f \u0645\u0646\u062d\u0635\u0631 \u0628\u0647 \u0641\u0631\u062f \u062e\u0648\u062f \u0628\u0631\u0627\u06cc \u06af\u0631\u0627\u0641\u06cc\u06a9 \u0647\u0627\u06cc \u0628\u0627 \u06a9\u06cc\u0641\u06cc\u062a \u0628\u0627\u0644\u0627 \u0648 \u062a\u0639\u0627\u0645\u0644 \u0647\u0645\u0647\u062c\u0627\u0646\u0628\u0647 \u0627\u0633\u062a.<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 1: \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc WebSocket \u0631\u0627 \u062f\u0631 UE5 \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f<\/strong><\/p>\n<p>\u0628\u0631\u0627\u06cc \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 <code>WebSocket<\/code> \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u060c \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 WebSockets \u0628\u0647 <code>PublicDependencyModuleNames<\/code> \u062f\u0631 \u0634\u0645\u0627 <code>YourProject.Build.cs<\/code>:<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>PublicDependencyModuleNames.AddRange(new string[] { \"Core\", \"CoreUObject\", \"Engine\", \"WebSockets\" });\n\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 2: \u06cc\u06a9 \u0628\u0627\u0632\u06cc\u06af\u0631 \u0645\u0634\u062a\u0631\u06cc WebSocket \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f<\/strong><\/p>\n<p>\u062d\u0627\u0644 \u060c \u0628\u06cc\u0627\u06cc\u06cc\u062f \u06cc\u06a9 \u0645\u0634\u062a\u0631\u06cc WebSocket \u0631\u0627 \u062f\u0631 \u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0628\u0647 \u0633\u0631\u0648\u0631 Node.js \u0645\u0627 \u0648\u0635\u0644 \u0634\u0648\u062f.<\/p>\n<p>WebSocketClientActor.h:<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>#pragma once\n\n#include \"CoreMinimal.h\"\n#include \"GameFramework\/Actor.h\"\n#include \"WebSocketsModule.h\"\n#include \"IWebSocket.h\"\n#include \"WebSocketClientActor.generated.h\"\n\nUCLASS()\nclass YOURPROJECT_API AWebSocketClientActor : public AActor\n{\n    GENERATED_BODY()\n\npublic:\n    AWebSocketClientActor();\n\nprotected:\n    virtual void BeginPlay() override;\n    virtual void Tick(float DeltaTime) override;\n\nprivate:\n    TSharedPtr<iwebsocket> WebSocket;\n\n    void SetupWebSocket();\n    void OnWebSocketMessageReceived(const FString&amp; Message);\n};\n<\/iwebsocket><\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>WebSocketClientActor.cpp:<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>#include \"WebSocketClientActor.h\"\n#include \"Engine\/Engine.h\"\n\nAWebSocketClientActor::AWebSocketClientActor()\n{\n    PrimaryActorTick.bCanEverTick = true;\n}\n\nvoid AWebSocketClientActor::BeginPlay()\n{\n    Super::BeginPlay();\n    SetupWebSocket();\n}\n\nvoid AWebSocketClientActor::SetupWebSocket()\n{\n    if (!FModuleManager::Get().IsModuleLoaded(\"WebSockets\"))\n    {\n        FModuleManager::Get().LoadModule(\"WebSockets\");\n    }\n\n    WebSocket = FWebSocketsModule::Get().CreateWebSocket(TEXT(\"ws:\/\/localhost:8080\"));\n\n    WebSocket-&gt;OnConnected().AddLambda([]()\n    {\n        UE_LOG(LogTemp, Log, TEXT(\"Successfully connected to WebSocket server\"));\n    });\n\n    WebSocket-&gt;OnConnectionError().AddLambda([](const FString&amp; Error)\n    {\n        UE_LOG(LogTemp, Error, TEXT(\"WebSocket Connection Failed: %s\"), *Error);\n    });\n\n    WebSocket-&gt;OnClosed().AddLambda([](int32 StatusCode, const FString&amp; Reason, bool bWasClean)\n    {\n        UE_LOG(LogTemp, Log, TEXT(\"WebSocket Closed: %s\"), *Reason);\n    });\n\n    WebSocket-&gt;OnMessage().AddLambda([this](const FString&amp; Message)\n    {\n        UE_LOG(LogTemp, Log, TEXT(\"Received WebSocket Message: %s\"), *Message);\n        OnWebSocketMessageReceived(Message);\n    });\n\n    WebSocket-&gt;Connect();\n}\n\nvoid AWebSocketClientActor::OnWebSocketMessageReceived(const FString&amp; Message)\n{\n    if (Message.Contains(\"color\"))\n    {\n        \/\/ Change the color of the actor based on the message\n        UStaticMeshComponent* MeshComp = FindComponentByClass<ustaticmeshcomponent>();\n        if (MeshComp)\n        {\n            FLinearColor Color = FLinearColor::Red;\n            UMaterialInstanceDynamic* DynMaterial = MeshComp-&gt;CreateAndSetMaterialInstanceDynamic(0);\n            if (DynMaterial)\n            {\n                DynMaterial-&gt;SetVectorParameterValue(TEXT(\"BaseColor\"), Color);\n            }\n        }\n    }\n}\n\nvoid AWebSocketClientActor::Tick(float DeltaTime)\n{\n    Super::Tick(DeltaTime);\n\n    if (WebSocket &amp;&amp; WebSocket-&gt;IsConnected())\n    {\n        WebSocket-&gt;Send(TEXT(\"Hello from Unreal Engine!\"));\n    }\n}\n<\/ustaticmeshcomponent><\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"3_%D9%85%D8%B4%D8%AA%D8%B1%DB%8C_Unity_WebSocket_%D8%A8%D8%B1%D8%A7%DB%8C_%D9%85%D9%82%D8%A7%DB%8C%D8%B3%D9%87\"><\/span>\n<p>  3. \u0645\u0634\u062a\u0631\u06cc Unity WebSocket (\u0628\u0631\u0627\u06cc \u0645\u0642\u0627\u06cc\u0633\u0647)<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0648\u062d\u062f\u062a \u060c \u062f\u0631 \u0645\u0642\u0627\u06cc\u0633\u0647 \u0628\u0627 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u060c \u062a\u0645\u0627\u06cc\u0644 \u0628\u0647 \u0631\u0648\u06cc\u06a9\u0631\u062f \u0633\u0627\u062f\u0647 \u062a\u0631 \u062f\u0627\u0631\u062f \u0648 \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0627\u0628\u0632\u0627\u0631\u06cc \u0639\u0627\u0644\u06cc \u0628\u0631\u0627\u06cc \u06a9\u0633\u0627\u0646\u06cc \u06a9\u0647 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u06cc\u06a9 \u0631\u0627\u0647 \u062d\u0644 \u0633\u0628\u06a9 \u0627\u0645\u0627 \u0645\u0624\u062b\u0631 \u0647\u0633\u062a\u0646\u062f \u060c \u062a\u0628\u062f\u06cc\u0644 \u0645\u06cc \u06a9\u0646\u062f. \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0646\u062d\u0648\u0647 \u0627\u062c\u0631\u0627\u06cc \u0647\u0645\u0627\u0646 \u0639\u0645\u0644\u06a9\u0631\u062f \u062f\u0631 \u0648\u062d\u062f\u062a \u0622\u0648\u0631\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<p>\u0628\u0633\u062a\u0647 WebSocketSharp \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 NUGET \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f \u06cc\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f <code>WebSocket<\/code> \u0627\u0641\u0632\u0648\u0646\u0647<\/p>\n<p>\u06cc\u06a9 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0645\u0634\u062a\u0631\u06cc WebSocket \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>using System.Collections;\nusing UnityEngine;\nusing WebSocketSharp;\n\npublic class WebSocketClient : MonoBehaviour\n{\n    private WebSocket ws;\n\n    void Start()\n    {\n        ws = new WebSocket(\"ws:\/\/localhost:8080\");\n\n        ws.OnOpen += (sender, e) =&gt; {\n            Debug.Log(\"WebSocket connected.\");\n        };\n\n        ws.OnMessage += (sender, e) =&gt; {\n            Debug.Log(\"Received: \" + e.Data);\n            \/\/ Handle the message\n            HandleMessage(e.Data);\n        };\n\n        ws.Connect();\n    }\n\n    void HandleMessage(string message)\n    {\n        if (message.Contains(\"color\"))\n        {\n            GetComponent<renderer>().material.color = Color.red; \/\/ Example for Unity\n        }\n    }\n\n    void Update()\n    {\n        if (ws != null &amp;&amp; ws.IsAlive)\n        {\n            ws.Send(\"Hello from Unity!\");\n        }\n    }\n\n    void OnApplicationQuit()\n    {\n        if (ws != null)\n        {\n            ws.Close();\n        }\n    }\n}\n<\/renderer><\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"4_%D9%85%D9%82%D8%A7%DB%8C%D8%B3%D9%87_%D9%85%D9%88%D8%AA%D9%88%D8%B1_%D8%BA%DB%8C%D8%B1_%D9%88%D8%A7%D9%82%D8%B9%DB%8C_%D9%88_%D9%88%D8%AD%D8%AF%D8%AA_%D8%AF%D9%88_%D9%85%D8%B9%D9%84%D9%85_%D8%A8%D8%A7_%D8%B3%D8%A8%DA%A9_%D9%87%D8%A7%DB%8C_%D9%85%D8%AE%D8%AA%D9%84%D9%81\"><\/span>\n<p>  4. \u0645\u0642\u0627\u06cc\u0633\u0647 \u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u0648 \u0648\u062d\u062f\u062a: \u062f\u0648 \u0645\u0639\u0644\u0645 \u0628\u0627 \u0633\u0628\u06a9 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u060c \u0628\u0627 \u0633\u06cc\u0633\u062a\u0645 \u0642\u0648\u06cc C ++ \u0648 \u06a9\u0627\u0631 \u0628\u0627 \u062f\u0627\u0631\u0627\u06cc\u06cc \u0628\u0633\u06cc\u0627\u0631 \u062f\u0642\u06cc\u0642 \u060c \u0645\u0627\u0646\u0646\u062f \u0645\u0639\u0644\u0645\u06cc \u0627\u0633\u062a \u06a9\u0647 \u062f\u0627\u0646\u0634 \u0622\u0645\u0648\u0632\u0627\u0646 \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062f\u0631\u0633\u0647\u0627\u06cc \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0628\u0627 \u063a\u0648\u0637\u0647 \u0648\u0631\u06cc \u0639\u0645\u06cc\u0642 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc\u06cc \u0645\u06cc \u06a9\u0646\u062f. \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u062e\u0648\u062f \u0631\u0627 \u0633\u0631\u06cc\u0639\u062a\u0631 \u06cc\u0627\u062f \u0628\u06af\u06cc\u0631\u06cc\u062f \u06a9\u0647 \u0645\u0641\u0627\u0647\u06cc\u0645 \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0631\u0627 \u06cc\u0627\u062f \u0628\u06af\u06cc\u0631\u06cc\u062f \u060c \u0627\u0645\u0627 \u067e\u06cc\u0686\u06cc\u062f\u06af\u06cc \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u062f\u0631 \u0628\u0639\u0636\u06cc \u0645\u0648\u0627\u0642\u0639 \u06cc\u06a9 \u0686\u0627\u0644\u0634 \u0628\u0627\u0634\u062f.<\/p>\n<p>\u0627\u0632 \u0637\u0631\u0641 \u062f\u06cc\u06af\u0631 \u0648\u062d\u062f\u062a \u060c \u0631\u0648\u06cc\u06a9\u0631\u062f \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u062a\u0631\u06cc \u0631\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f. \u0627\u06cc\u0646 \u0645\u0627\u0646\u0646\u062f \u0645\u0639\u0644\u0645\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0645\u0641\u0627\u0647\u06cc\u0645 \u0631\u0627 \u0633\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0628\u0647 \u062f\u0627\u0646\u0634 \u0622\u0645\u0648\u0632\u0627\u0646 \u06a9\u0645\u06a9 \u0645\u06cc \u06a9\u0646\u062f \u062a\u0627 \u0633\u0631\u06cc\u0639\u062a\u0631 \u062f\u0633\u062a \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u067e\u0631\u0648\u0698\u0647 \u0647\u0627\u06cc \u062f\u0646\u06cc\u0627\u06cc \u0648\u0627\u0642\u0639\u06cc \u06a9\u062b\u06cc\u0641 \u06a9\u0646\u0646\u062f. \u0627\u06af\u0631 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u0633\u0627\u062f\u0647 \u062a\u0631 \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 WebSocket \u0647\u0633\u062a\u06cc\u062f \u060c \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0645\u062d\u06cc\u0637 \u0648\u062d\u062f\u062a \u0628\u0631\u0627\u06cc \u0646\u0645\u0648\u0646\u0647 \u0633\u0627\u0632\u06cc \u0633\u0631\u06cc\u0639 \u0645\u0646\u0627\u0633\u0628 \u062a\u0631 \u0628\u0627\u0634\u062f.<\/p>\n<p>\u0628\u0627 \u0648\u062c\u0648\u062f \u0627\u06cc\u0646 \u0627\u062e\u062a\u0644\u0627\u0641\u0627\u062a \u060c \u0647\u0631 \u062f\u0648 \u0645\u0648\u062a\u0648\u0631 \u062f\u0631 \u0627\u0631\u062a\u0628\u0627\u0637\u0627\u062a \u062f\u0631 \u0632\u0645\u0627\u0646 \u0648\u0627\u0642\u0639\u06cc \u0628\u0631\u062a\u0631\u06cc \u062f\u0627\u0631\u0646\u062f \u0648 \u0622\u0646\u0647\u0627 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u062a\u0639\u0627\u0645\u0644\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u06cc \u06a9\u0646\u0646\u062f. \u0627\u0646\u062a\u062e\u0627\u0628 \u0628\u06cc\u0646 \u0648\u062d\u062f\u062a \u0648 \u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631\u0648\u0627\u0642\u0639\u06cc \u0628\u0647 \u0646\u06cc\u0627\u0632\u0647\u0627\u06cc \u067e\u0631\u0648\u0698\u0647 \u0634\u0645\u0627 \u06a9\u0627\u0647\u0634 \u0645\u06cc \u06cc\u0627\u0628\u062f &#8211; \u062e\u0648\u0627\u0647 \u0628\u0647 \u0648\u0641\u0627\u062f\u0627\u0631\u06cc \u0632\u06cc\u0627\u062f \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u06cc\u0627 \u062a\u06a9\u0631\u0627\u0631 \u0633\u0631\u06cc\u0639 \u0648 \u0627\u0646\u0639\u0637\u0627\u0641 \u067e\u0630\u06cc\u0631\u06cc \u0648\u062d\u062f\u062a \u0646\u06cc\u0627\u0632 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"5_%D9%86%D8%AA%DB%8C%D8%AC%D9%87_%DA%AF%DB%8C%D8%B1%DB%8C\"><\/span>\n<p>  5. \u0646\u062a\u06cc\u062c\u0647 \u06af\u06cc\u0631\u06cc<br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 WebSockets \u060c \u0647\u0631 \u062f\u0648 Eneral Engine 5 \u0648 Unity \u0645\u06cc \u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0647 \u0637\u0648\u0631 \u0645\u0624\u062b\u0631 \u0628\u0627 \u06cc\u06a9 \u0633\u0631\u0648\u0631 Node.js WebSocket \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0631\u0642\u0631\u0627\u0631 \u06a9\u0646\u0646\u062f \u0648 \u062a\u0639\u0627\u0645\u0644 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0648\u0627\u0642\u0639\u06cc \u0631\u0627 \u062f\u0631 \u0627\u0646\u0648\u0627\u0639 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc \u06a9\u0646\u0646\u062f. \u0627\u06cc\u0646 \u06a9\u0647 \u0622\u06cc\u0627 \u0634\u0645\u0627 \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0647\u0645\u0647\u062c\u0627\u0646\u0628\u0647 \u0633\u0627\u062e\u062a \u0648 \u0633\u0627\u0632 \u062f\u0631 \u062c\u0647\u0627\u0646 \u0648 \u06cc\u0627 \u0686\u0631\u062e\u0647 \u062a\u0648\u0633\u0639\u0647 \u0633\u0631\u06cc\u0639 \u0645\u0631\u062d\u0644\u0647 \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f \u060c \u0627\u0631\u062a\u0628\u0627\u0637\u0627\u062a WebSocket \u0627\u0628\u0632\u0627\u0631\u06cc \u0642\u062f\u0631\u062a\u0645\u0646\u062f \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u062a\u062c\u0631\u0628\u06cc\u0627\u062a \u062a\u0639\u0627\u0645\u0644\u06cc \u0648 \u067e\u0648\u06cc\u0627 \u0627\u0633\u062a.<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u060c \u0645\u0627 \u0686\u06af\u0648\u0646\u06af\u06cc \u0627\u062c\u0631\u0627\u06cc \u0627\u0631\u062a\u0628\u0627\u0637\u0627\u062a \u0633\u0648\u06a9\u062a \u0628\u06cc\u0646 \u0633\u0631\u0648\u0631 Node.js \u0648 \u0647\u0631 \u062f\u0648 \u0645\u0648\u062a\u0648\u0631 Unreal 5 (UE5) \u0648 \u0648\u062d\u062f\u062a \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 WebSockets \u0628\u0631\u0631\u0633\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u062f\u0631 \u062d\u0627\u0644\u06cc \u06a9\u0647 \u0647\u0631 \u062f\u0648 \u0645\u0648\u062a\u0648\u0631 \u063a\u06cc\u0631 \u0648\u0627\u0642\u0639\u06cc \u0648 \u0648\u062d\u062f\u062a \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0647\u0627\u06cc \u0639\u0627\u0644\u06cc \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u062f\u0631 \u0632\u0645\u0627\u0646 \u0648\u0627\u0642\u0639\u06cc \u0647\u0633\u062a\u0646\u062f \u060c \u0647\u0631 \u06cc\u06a9 &hellip;<\/p>\n","protected":false},"author":2,"featured_media":98166,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[339],"tags":[],"class_list":["post-98165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/98165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/comments?post=98165"}],"version-history":[{"count":0,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/98165\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media\/98166"}],"wp:attachment":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media?parent=98165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/categories?post=98165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/tags?post=98165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}