Public trade in the test market

Added by Niko over 2 years ago

When i login to the server, I get no result from the server.
Is something wrong or not?
Thank you.


Replies (3)

RE: Public trade in the test market - Added by Erik over 2 years ago

your code would help

RE: Public trade in the test market - Added by Erik over 2 years ago

nvm, seems to be down...

RE: Public trade in the test market - Added by Niko over 2 years ago

Thanks for your replying.
I hope my code would be helpful.
I got authenticated from the server.

String loginCmd = "{\"cmd\":\"login\", \"args\":{ \"session_key\":\""
+ sessionKey + "\", \"service\":\"NEXTAPI\"}}";
string loginCommandJsonString = JsonConvert.SerializeObject(loginCmd);
Encoding encoding = Encoding.UTF8;
StreamWriter streamWriter = new StreamWriter(sslStream, encoding);
streamWriter.AutoFlush = false;
streamWriter.NewLine = "\n";
streamWriter.WriteLine(loginCommandJsonString);
streamWriter.Flush();

then "" comes from the server.

(1-3/3)