Search found 20 matches

by tavandung12
05 Jan 2017, 16:26
Forum: SFS2X Questions
Topic: How to detect login from another device?
Replies: 3
Views: 5818

How to detect login from another device?

Hi,
I have an account and two devices (A, B)
The account logged on device A, but now I login the account on device B
and I need show a message on device A: "the account be logged in from another device".
So, How to detect login from another device to show that message?
by tavandung12
20 Sep 2016, 08:55
Forum: SFS2X Questions
Topic: How to send Integer array to server from javascript client?
Replies: 10
Views: 12444

Re: How to send Integer array to server from javascript client?

we use

Code: Select all

sfso.getIntArray("numbers");


but why

Code: Select all

sfso.get("numbers").getTypeId();


return SFS_ARRAY?
by tavandung12
20 Sep 2016, 06:56
Forum: SFS2X Questions
Topic: How to send Integer array to server from javascript client?
Replies: 10
Views: 12444

Re: How to send Integer array to server from javascript client?

Hi Lapo, This is my source code: Client-Side: var message = new Object(); message.numbers = [1, 2, 3, 4, 5] sfs.send(new SFS2X.Requests.System.ExtensionRequest("sum", message, event.room)); Server-Side: List<Integer> numbers = (List<Integer>) sfso.getIntArray("numbers"); Client-S...
by tavandung12
19 Sep 2016, 10:00
Forum: SFS2X Questions
Topic: How to send Integer array to server from javascript client?
Replies: 10
Views: 12444

Re: How to send Integer array to server from javascript client?

I've just updated version to 2.11.1 but get same error
by tavandung12
19 Sep 2016, 09:39
Forum: SFS2X Questions
Topic: How to send Integer array to server from javascript client?
Replies: 10
Views: 12444

Re: How to send Integer array to server from javascript client?

Hi Lapo, I have tried your code like that: from client side: var message = new Object(); message.numbers = [1, 2, 3, 4, 5] var room = new SFS2X.Entities.SFSRoom(roomId); return new SFS2X.Requests.System.ExtensionRequest("sum", message, room); on server size: List<Integer> numbers = (List<I...
by tavandung12
19 Sep 2016, 08:05
Forum: SFS2X Questions
Topic: How to send Integer array to server from javascript client?
Replies: 10
Views: 12444

How to send Integer array to server from javascript client?

I see that, when I send an integer array from javascript client, SmartFox Javascript Client API puts its to an SFSArray, but I only send an integer array not SFSArray, so how to?
by tavandung12
11 Jul 2016, 13:12
Forum: SFS2X Questions
Topic: Player always leave room
Replies: 2
Views: 4662

Re: Player always leave room

I think your player has joined other room from Lobby.

Can you show your source code?
by tavandung12
08 Jul 2016, 11:00
Forum: SFS2X Questions
Topic: How get login out data in USER_JOIN_ZONE event?
Replies: 2
Views: 4708

Re: How get login out data in USER_JOIN_ZONE event?

Okay, thank, your reply is enough information for me.

In my case, we use Hazelcast for distribution purpose, and we use an other system to authenticate user credentials, we must fetch data from two systems.

Thank for your support, :D
by tavandung12
08 Jul 2016, 08:06
Forum: SFS2X Questions
Topic: Event USER_JOIN_ZONE on server fires after LOGIN event on client?
Replies: 5
Views: 7070

Re: Event USER_JOIN_ZONE on server fires after LOGIN event on client?

Yes, I know, I mean

USER_JOIN_ZONE event on server will fire after LOGIN (login success) event be sent to client?
by tavandung12
08 Jul 2016, 08:02
Forum: SFS2X Questions
Topic: How get login out data in USER_JOIN_ZONE event?
Replies: 2
Views: 4708

How get login out data in USER_JOIN_ZONE event?

Hi,

When user login, I must get information from other system with username and must save that information to user, but in login phase we have not any User object, so I save the information to Login out data, but I have no ideas about reading Login out data in USER_JOIN_ZONE, can you show me How to?
by tavandung12
08 Jul 2016, 04:54
Forum: SFS2X Questions
Topic: Event USER_JOIN_ZONE on server fires after LOGIN event on client?
Replies: 5
Views: 7070

Event USER_JOIN_ZONE on server fires after LOGIN event on client?

Hi,

Event USER_JOIN_ZONE on server fires after LOGIN event on client?
by tavandung12
05 Jul 2016, 08:39
Forum: SFS2X Questions
Topic: How to disable automatic send list of rooms to client?
Replies: 2
Views: 4444

How to disable automatic send list of rooms to client?

Hi,

I see that SmartFox Server API sends list of rooms to client automatically, so how to disable its?
by tavandung12
30 Jun 2016, 13:16
Forum: SFS2X Questions
Topic: How to remove all user variables?
Replies: 2
Views: 4598

Re: How to remove all user variables?

It's complicated, so why don't we have a function like SFSUser.removeAllVariables()?

Go to advanced search