Connection to sfs client using java server API

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

Moonshine|ashish
Posts: 6
Joined: 13 May 2019, 09:50

Connection to sfs client using java server API

Postby Moonshine|ashish » 31 May 2019, 09:21

I am new to SFS2x required your help!
i am able establish successful connection with java server api through Javascript API
Like this

Code: Select all

var config = {};
   config.host = "localhost";
   config.port = 8080;
   config.zone = "MyExtension";
   config.useSSL = false;

   // Create SmartFox client instance
   sfs = new SFS2X.SmartFox(config);
   sfs.connect();
   

Now i need it vice-versa need to do this all connection stuff on Server side
can i achieve this and if yes then how ?
Thanks in advance.
User avatar
Lapo
Site Admin
Posts: 21095
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Connection to sfs client using java server API

Postby Lapo » 31 May 2019, 14:30

Hi,
I moved the post to the correct section (as it was posted under Android/Java).

Now i need it vice-versa need to do this all connection stuff on Server side
can i achieve this and if yes then how ?

I am not sure what you mean by this. Clients establish a connection to the server ... you don't need to also connect from server to client. The connection is "full duplex", meaning that once the client is connected messages can be sent from both sides.

Maybe you can clarify your question?
Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X HTML5 / JavaScript API”

Who is online

Users browsing this forum: No registered users and 1 guest