Search found 51 matches

by intomo
26 Jan 2022, 19:51
Forum: SFS2X iPhone / iPad / OSX API
Topic: Framework for Mac Catalyst
Replies: 1
Views: 5304

Framework for Mac Catalyst

I think this is an easy thing. I'd love to be able to use SFS with Mac Catalyst so I can deploy Mac clients as well. Catalyst uses iOS code so you wouldn't have to change the library, just make a framework available like you did for TVOS.Is that possible? Thanks in advance. See attached error. It is...
by intomo
03 Jan 2022, 06:28
Forum: SFS2X Questions
Topic: Persistent RoomVariable SFSArray
Replies: 1
Views: 3282

Persistent RoomVariable SFSArray

Hi. If I create a persistent, storable RoomVariable thru the admin on the server, and assign SFSArray as the type, what do I enter as the default value? If I'm starting with an empty array It makes sense for me to enter

Code: Select all

[]
in the field? Is this correct?
by intomo
17 Dec 2021, 16:18
Forum: SFS2X Questions
Topic: sendPublicMessage via Javascript extension
Replies: 4
Views: 3770

Re: sendPublicMessage via Javascript extension

I did what you suggested. Here is my entire extension. Reminding you I am on SmartFoxServer 2.18 on Mac. This is a Javascript extension. It was working fine until I tried to get the userlist. var stepCount = 0; var scheduler; var taskHandle; function init() { scheduler = getApi().newScheduler(); tas...
by intomo
16 Dec 2021, 18:32
Forum: SFS2X Questions
Topic: sendPublicMessage via Javascript extension
Replies: 4
Views: 3770

Re: sendPublicMessage via Javascript extension

What is wrong with my userlist? stepCount++; var obj = new SFSObject(); obj.putInt("result", stepCount) var room = getParentZone().getRoomByName("main"); var list = new SFSArray() list = room.getUserList() trace("stepCount:", stepCount, " users: ", list); getA...
by intomo
16 Dec 2021, 07:05
Forum: SFS2X Questions
Topic: sendPublicMessage via Javascript extension
Replies: 4
Views: 3770

sendPublicMessage via Javascript extension

I want to send a message via a Javascript extension to all users in a room. I've got the scheduler example working. Building on that example in the docs, what am I getting wrong here? Also, how would I send an extension response to all users? Thanks in advance. function runner() { try { stepCount++;...
by intomo
15 Dec 2021, 02:39
Forum: SFS2X Questions
Topic: Why do I get all this when I add a JS server extension?
Replies: 1
Views: 2267

Why do I get all this when I add a JS server extension?

18:35:24,256 INFO [SFSWorker:Sys:1] v2.SmartFoxServer - SmartFoxServer 2X (2.17.0) READY! Dec 14, 2021 6:35:24 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Server version name: Apache Tomcat/9.0.22 Dec 14, 2021 6:35:24 PM org.apache.catalina.startup.VersionLoggerListener log INFO:...
by intomo
14 Dec 2021, 18:06
Forum: SFS2X iPhone / iPad / OSX API
Topic: client name and listening to events
Replies: 3
Views: 6588

Re: client name and listening to events

In AS or JS I would addEventListener for specific events on a case by case basis. Is there no way to do this in Swift/Objective-C? Thanks.
by intomo
13 Dec 2021, 19:52
Forum: SFS2X Questions
Topic: Server fails to remove user when ethernet unplugged
Replies: 3
Views: 3397

Re: Server fails to remove user when ethernet unplugged

Is it possible to write an extension such:
User would log in through the extension
Extension would check for duplicate username in the userlist
If the duplicate existed, it would disconnect that user
It would then log in current user

Thanks for all your help
by intomo
09 Dec 2021, 08:19
Forum: SFS2X Questions
Topic: Can I use a domain instead of an IP address as host?
Replies: 3
Views: 3210

Re: Can I use a domain instead of an IP address as host?

Thanks. What are default settings for in admin? I changed these to our IP address, so what do I set them back to?
by intomo
08 Dec 2021, 23:43
Forum: SFS2X iPhone / iPad / OSX API
Topic: Can I loadConfig from web server?
Replies: 1
Views: 5401

Can I loadConfig from web server?

Can I loadConfig from web server or does that only point to local bundle?

Thanks
by intomo
08 Dec 2021, 23:41
Forum: SFS2X Questions
Topic: Can I use a domain instead of an IP address as host?
Replies: 3
Views: 3210

Can I use a domain instead of an IP address as host?

Can I use a domain instead of an IP address as host in my config?
If so, what has to be changed on the smartfox admin?

Thanks
by intomo
07 Dec 2021, 17:48
Forum: SFS2X Questions
Topic: Server fails to remove user when ethernet unplugged
Replies: 3
Views: 3397

Server fails to remove user when ethernet unplugged

I have a weird bug. I have apps on iPhones connecting. The get all the normal events fired. The userlist works fine and updates when I quit the app on any phone. All working as expected. However, these phones are connected via ethernet dongles. If I pull the plug on any dongle, the app immediately t...
by intomo
03 Dec 2021, 15:57
Forum: SFS2X iPhone / iPad / OSX API
Topic: can you send PrivateMessage by name?
Replies: 3
Views: 6248

Re: can you send PrivateMessage by name?

Can you assign an ID during connection/log in as long as it is unique? Or are they always assigned by the server? I'm assuming they are always integers as well? Thanks.
by intomo
03 Dec 2021, 07:02
Forum: SFS2X iPhone / iPad / OSX API
Topic: can you send PrivateMessage by name?
Replies: 3
Views: 6248

can you send PrivateMessage by name?

I see how to send by ID, is there a way of sending by name of the recipient?

Code: Select all

    func sendPrivateMessage(recipientID: Int, message: String) {
        smartFox.send(PrivateMessageRequest.request(withMessage:message, recipientId: recipientID) as? IRequest)
    }
by intomo
01 Dec 2021, 22:54
Forum: SFS2X iPhone / iPad / OSX API
Topic: client name and listening to events
Replies: 3
Views: 6588

client name and listening to events

Is there any problem with giving clients integer custom names? I seem to remember all names had to begin with a letter, or am I mistaken? Also, in Swift is there a way to selectively listen to events? I remember in Obj-C we used to have to import specific events in order to receive them. Is there a ...

Go to advanced search