[demo] socket.io&http server in construct2[update]

Post your completed addons to share with the community

Post » Wed Dec 12, 2012 12:01 pm

Got some questions in inbox regarding tcp, udp and socket.io, so i'll just paste the response here, maybe someone will find it useful:

-------
Yes, indeed it is using tcp for transport, and no, there is no indication that it will support udp (Some security issues with browsers, as it seems, there was some talk about it on socket.io mailing list).

I don't see that as a big issue, advantages of socket.io are multiple (main advantage is that you can use them in a browser, as for udp there's no client library or other possibility to get it in browser), and in my opinion, this is the best starting position to write a some sort of browser/node-webkit multiplayer game. UDP is something that is really useful and has some advantages (speed) but i believe it's something you should add in a "second stage" (whatever that means)of development, and build it with writing actual code - not inside construct 2.

Also, there's a "volatile" method in server-side of socket.io that behaves somewhat similar to udp (it won't get delivered if the client isn't ready to recieve it.) so that should help to speed things up if speed of websockets (?!) is an issue!


But why not, i'll try to make a simple udp plugin, if node-webkit supports it! (but not so soon!)

Cheers!
-------

Also, on the side-note, this whole thing with writing a server in construct 2 is currently just an experiment, we must think "outside of the box" how to set-up whole "multiplayer" thing with node-webkit if we want to make some feasible solutions. It's not impossible, hell, last week i never really thought that it will be possible to write any kind of server in construct 2, and that changed, so who knows, we'll see what future brings!
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,652

Post » Wed Dec 12, 2012 2:19 pm

B
50
S
17
G
15
Posts: 1,029
Reputation: 26,289

Post » Wed Dec 12, 2012 2:32 pm

[QUOTE=harrio] [/QUOTE]
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,652

Post » Wed Dec 12, 2012 3:27 pm

This is amazing :) it's much more accessible than the others we had before.
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Fri Jan 18, 2013 4:05 pm

R116 support Linux exporter, does it mean we could create node.js server by c2 which running at Linux environment like linode?rexrainbow2013-01-18 23:04:56
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Fri Jan 18, 2013 6:20 pm

[QUOTE=Rory] This is amazing :) it's much more accessible than the others we had before.[/QUOTE]
@Rory
Have you checked out my
(Behavior) MultiPlayer + online demo. Making an accessible plugin/behavior was my main aim.
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Fri Jan 18, 2013 8:42 pm

With no central server, how do other clients no about each other?
B
17
S
9
G
7
Posts: 249
Reputation: 6,922

Post » Fri Jan 18, 2013 10:05 pm

@rfisher one of these will become server+client who open the game, others are clients only.rexrainbow2013-01-18 23:04:07
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Sat Jan 19, 2013 1:04 am

@rexrainbow

So it will be like minecraft, you will have to know the ip address or website address to join the server?
B
17
S
9
G
7
Posts: 249
Reputation: 6,922

Post » Sat Jan 19, 2013 6:37 am

@rfisher

I think so~ The network in C1 might be similar, too.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests