2- Making Multiplayer HTML5 Game: WebSocket Communication. NodeJs Tutorial Guide

preview_player
Показать описание


If you have any question, feel free to post a comment below.
Рекомендации по теме
Комментарии
Автор

In case anyone else has this problem if the client is not connecting to the server with socket.io, changing the script link to <script
works.

AnnaAD
Автор

if someone is having coneection problem with socket, just change the index.html file to:

<script

<script>
const socket = io();
</script>

Hello World

bruno
Автор

Thank you so much for these tutorials. They are easy to follow and really helpful because I can't find any other tutorials anywhere that are what I want except this one. :D

aaantetil
Автор

Wow! Your way for explaining things is just too AWESOME!!

Thank you so much.

danielelmuneco
Автор

Damn i learn so fast watching than reading several tutorials... Subscribed!

telostia
Автор

happy birthday after watching it in 5 years

AnishanB
Автор

A very useful tool for not restarting the server over and over again is the npm package "nodemon".
It watches for file changes and if you save and reload the page the server restarts automatically.

zugdsbtngizudsgbnudsdsoiu
Автор

Thank you so much. It such a delight to go through your well constructed tutorials. Helps allot.

mbrav
Автор

Earned a sub mate, an immensely elpful video! ;) <3

gambar
Автор

Thank you so so so so so so so much! :D

eboatwright_
Автор

the brainwashing flash of the anime girl smoking a cigarette is hilarious

poisonedcheeseproductions
Автор

This is a very good tutorial. Thank you!

peoeneroth
Автор

Can someone explain me why if my client browser page is open and I restart the server the first socket connection ignores everything beyond the callback of the connection itself. If I restart the server and then open the browser page of the client this doesn't happen.

SoulOfReagge
Автор

How can i add external css and js? All files (with index.htm)l are in client so i refer only to file like <script src="/main.js"></script> and console return error 404(not found) :<

GanJarO
Автор

when I go to run the initial Hello World thing, it says, dirname not defined. does anyone have a solution

docta
Автор

5:21 that comma after msg:'hello' is a mistake right?

leochoome
Автор

i do no get socket connection in my log

only 2 differences i have is i have a dedicated log function
and instead if saying function i just used the arrow function method


function log(MESSAGE, ID='System', STATUS='OK'){

};


var io = require('socket.io')(serv, {});
io.sockets.on('connection', (socket)=>{
log('socket connection');
});

logangraham
Автор

Hello, I can't get the button to execute the happy message. Am I the only one?

lifesabbq
Автор

Have you played runescape before by any chance? Your voice seems familiar

Gheotic
Автор

If it does't work make sure that you don't have "NoScript" Addon installed or at least activate the script for the page :)

ifudiscusswithmeurprobably
join shbcf.ru