Need info about client-server communication
by BetaSteward
Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins
Need info about client-server communication
by Fedora » 03 Feb 2020, 22:36
Hello there!
I'm trying to develop a client for the Xmage server (because I want to test some things and I need a MTG Engine).
I've been reading the Wiki on Github and reading some of the code, but I couldn't find much documentation about how the client and the server communicates.
So far I have seen in Mage/src/main/java/mage/constants/PlayerAction.java there is an enum for events, and in Mage. Common/src/main/java/mage/remote/SessionImpl.java there is the code used to open a session via Sockets (and an option for HTTP, I believe?)
I would appreciate if someone pointed me at some documentation about this, or gave me an idea about where to start looking at to try to comprehend this. I'm not a Java programmer nor an native english speaker, so pardon me in advance.
Thanks!
I'm trying to develop a client for the Xmage server (because I want to test some things and I need a MTG Engine).
I've been reading the Wiki on Github and reading some of the code, but I couldn't find much documentation about how the client and the server communicates.
So far I have seen in Mage/src/main/java/mage/constants/PlayerAction.java there is an enum for events, and in Mage. Common/src/main/java/mage/remote/SessionImpl.java there is the code used to open a session via Sockets (and an option for HTTP, I believe?)
I would appreciate if someone pointed me at some documentation about this, or gave me an idea about where to start looking at to try to comprehend this. I'm not a Java programmer nor an native english speaker, so pardon me in advance.
Thanks!

- Fedora
- Posts: 1
- Joined: 03 Feb 2020, 22:22
- Has thanked: 0 time
- Been thanked: 0 time
Re: Need info about client-server communication
by JayDi » 09 Feb 2020, 11:39
Xmage uses jboss remoting library (version 2). It's socket communication with binary objects transfer (java binary serialization). Search github issues by "graphql" for more related topics and links.
-
JayDi - Posts: 324
- Joined: 23 Nov 2017, 15:41
- Location: Russia
- Has thanked: 0 time
- Been thanked: 48 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 15 guests