Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / HTML5 and Sockets / WebSockets

Author
Message
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 13th Aug 2024 11:04
I struggle to get a network connection up and running in my HTML5 app. I've made the app and it works fine as a regular Windows app with Sockets, but I am testing it out with HTML5 and would like to get it running as a HTML5 app as well. I understand it will use WebSockets instead, but I can't get anything going.

1. It says it will need an HTTP-style header, how do I send and receive this?
2. I use Sockets server-side, can I continue to use that as normal?

Any help would be greatly appreciated!
13/0
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 13th Aug 2024 18:09
I had a small breaktrough, I have recieved and read the HTTP style on the server, but I can still not commucate other than that, but progress
13/0
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 15th Aug 2024 02:12
My suggestion is make a small python .exe prolly 1 MB that launches hidden with Agk Agk talk to the app and it comes with web devices. There is no header access if it is packet modifications u need. I asked 2 years ago for more control over packets

Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 15th Aug 2024 15:10
I already have a fully functional app that uses Sockets, but it has to be installed on the device. With HTML5, I could have people just visit a web page and start playing, much less hassle (for them). Right now I am trying to get a handshake going, after that, I have some leads on how to communicate a message.
13/0
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 28th Aug 2024 14:39
On discord you said you got this worked out. Can you post details here about how you did the handshake and made your connection?
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda
Pixel-Perfect Collision

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 9th Sep 2024 10:20
Quote: "On discord you said you got this worked out. "
Well, I can do the handshake (thanks to nachoz12341), and then I can read a message coming from Tier1 HTML5 or Postman, however, I can't read a message from Tier2 going to Tier1 HTML5 or Postman. Postman says opcode is 0. I've looked inside the packet, the last bit of data looks the same each way, but it only works one way.

Here comes AppGameKit Tier1 HTML5 client part:


And here comes AppGameKit Tier2 host part:
13/0

Login to post a reply

Server time is: 2024-11-17 22:13:25
Your offset time is: 2024-11-17 22:13:25