Search code examples
javaflashmultiplayerpersistent-connection

Persistent connections between Flash client and Java server


I'm new to Flash. I'm planning to create a game client in Flash (running in browser) that needs to talk to a server written in Java. Connection between client and server needs to be persistent.

I'm aware of XMLSocket - is that the only way to go? Any recommendations?

Thanks!


Solution

  • There's a Socket class, which lets you use real TCP when talking to a server. Downside - you'll have to implement the protocol yourself (that's implementing HTTP client in most cases. Maybe somebody already did it)