java.lang.Object
technology.sola.engine.networking.socket.SocketMessage
SocketMessage contains data transmitted between a server and client.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SocketMessage
Creates a new SocketMessage instance. Body must be 65533 bytes or fewer.- Parameters:
type
- the type of the messagebody
- the body of the message
-
-
Method Details
-
parse
Creates a SocketMessage instance from a raw string message.- Parameters:
message
- the raw message- Returns:
- the parsed
SocketMessage
instance
-
getType
public int getType()- Returns:
- the type of the message
-
getBody
- Returns:
- the body of the message
-
toString
-