Socket.io Connection, JS/ES5
Запись от 8Observer8 размещена 15.02.2019 в 17:59
Показов 1798
Комментарии 1
Метки javascript, socket.io
|
Blog content I will try to explain a process in step-by-step how to prepare server but it will be good if you will watch this video tutorial in parallel: Setup & Sending Files. Node.js Tutorial Guide Youtube
You need to download and install Node.js: https://nodejs.org/en/download/ At first test let's create a very simple server script locally that will write in the console terminal*"client connected" when client will be connected to the server. Create a folder for your project and go to the folder using CMD. Write this command in the console terminale to create package.json:
Open your prefered code editor. If you use VSCode you can run in the console terminal this command from your project folder:
index.html
app.js
You will see "Hello, World" on the web page. Let's find "cnd socket.io" url in the Internet. Add this code to the index.html:
app.js
You will see the message "socket connection" in the console. | ||||||||||||||||||||||||||
Метки javascript, socket.io
Размещено в Без категории
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
Всего комментариев 1
Комментарии
-
Запись от 8Observer8 размещена 17.02.2019 в 19:29


