Author Topic: Websockets, Socket.io and HTML5  (Read 3422 times)

bbigger

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Websockets, Socket.io and HTML5
« on: March 10, 2013, 03:35:12 PM »
Based on what I've read, it seems trivial to connect to TNet from any UPnP enabled device, even from a mobile browser with websockets. True? Has anyone been able to do this with HTML5, JavaScript/Socket.io? Obviously limitations, but simple chat, right?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Websockets, Socket.io and HTML5
« Reply #1 on: March 11, 2013, 09:04:09 AM »
Mobile devices can use TNet as-is, without any HTML5. TNet is a C# library, you can't use it with HTML5. You could emulate TNet's packets / protocol from an HTML5 app, but I am not sure why you would want to.

bbigger

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Websockets, Socket.io and HTML5
« Reply #2 on: March 13, 2013, 07:01:55 PM »
My thoughts were to use TNet in a different setup than norm- one player would play in more of a solo mission where onlookers can watch and interact with their smartphones. For example, if a user is playing a flight simulation game, onlookers could send taunts, launch missiles at the player, even help the player in some fashion, all from their smartphone's browser in a simple HTML interface. They'd basically have a button or two that would send a message to TNet, webserver, socket server, etc.

That make more sense?

allensachi

  • Guest
Re: Websockets, Socket.io and HTML5
« Reply #3 on: June 24, 2013, 05:59:14 AM »
Based on what I've read, it seems trivial to connect to TNet from any UPnP enabled device, even from a mobile browser with websockets. True? Has anyone been able to do this with HTML5, JavaScript/Socket.io? Obviously limitations, but simple chat, right?

Before you go throu it , try to learn basics of socket program , this will help you to learn the socket basics...

http://csharp.net-informations.com/communications/csharp-socket-programming.htm

allen.