HELP!
HELP!
Hey,
How can I check through an handleRequest() if a user is trying to login?
I've tried this: "if (cmd == "login") { // DO SOMETHING }" but this is doesn't work.
Basically I want to send a response to the client from the server when user is trying to login.
Help?
How can I check through an handleRequest() if a user is trying to login?
I've tried this: "if (cmd == "login") { // DO SOMETHING }" but this is doesn't work.
Basically I want to send a response to the client from the server when user is trying to login.
Help?
Re: HELP!
In order to handle a login you need to user server events.
Please make sure to read this tutorial:
https://www.smartfoxserver.com/docs/1x/ ... /index.htm
Cheers
Please make sure to read this tutorial:
https://www.smartfoxserver.com/docs/1x/ ... /index.htm
Cheers
Re: HELP!
Thanks for you answer!Lapo wrote:In order to handle a login you need to user server events.
Please make sure to read this tutorial:
https://www.smartfoxserver.com/docs/1x/ ... /index.htm
Cheers
Another question, There is a way to getRoomList() through an Extension? If yes, How?
Re: HELP!
Yes. Read up on the Zone interface.IdanMasas wrote:There is a way to getRoomList() through an Extension? If yes, How?
Re: HELP!
This is returning me this error: "Error in extension [ loggedIn.as ]: ReferenceError: "getRoomList" is not defined."Rob wrote:Yes. Read up on the Zone interface.IdanMasas wrote:There is a way to getRoomList() through an Extension? If yes, How?
Any help?
Re: HELP!
The link that was posted by Rob is incorrect. That's for SmartFoxServer 2X but you're using SFS1.x
You should stick with the SFS1.x documentation:
https://www.smartfoxserver.com/docs/1x/
Server side API:
https://www.smartfoxserver.com/docs/1x/ ... /index.htm
cheers
You should stick with the SFS1.x documentation:
https://www.smartfoxserver.com/docs/1x/
Server side API:
https://www.smartfoxserver.com/docs/1x/ ... /index.htm
cheers
Re: HELP!
[ WARNING ] > InternalError: Can't find method it.gotoandplay.smartfoxserver.extensions.ExtensionHelper.joinRoom(sun.nio.ch.SocketChannelImpl,number,number,boolean,string,boolean,boolean).Lapo wrote:The link that was posted by Rob is incorrect. That's for SmartFoxServer 2X but you're using SFS1.x
You should stick with the SFS1.x documentation:
https://www.smartfoxserver.com/docs/1x/
Server side API:
https://www.smartfoxserver.com/docs/1x/ ... /index.htm
cheers
This is what I'm getting now. I'm so confused idk why is it not working.
Re: HELP!
By the way, Please look at my new post i just posted: https://forums.smartfoxserver.com/viewt ... =4&t=22714Lapo wrote:The link that was posted by Rob is incorrect. That's for SmartFoxServer 2X but you're using SFS1.x
You should stick with the SFS1.x documentation:
https://www.smartfoxserver.com/docs/1x/
Server side API:
https://www.smartfoxserver.com/docs/1x/ ... /index.htm
cheers
Thank you so much for your quick responds!
Re: HELP!
Hey, I don't want to interrupt you but I have to understand how to do it.Lapo wrote:The link that was posted by Rob is incorrect. That's for SmartFoxServer 2X but you're using SFS1.x
You should stick with the SFS1.x documentation:
https://www.smartfoxserver.com/docs/1x/
Server side API:
https://www.smartfoxserver.com/docs/1x/ ... /index.htm
cheers
Look at my newest post, I've sent it to you before, PLEASE help me Lapo.
I need to make the server send the exact response as I showed there.
Thanks:(
Re: HELP!
It seems like this could be caused by Extension code.IdanMasas wrote: [ WARNING ] > InternalError: Can't find method it.gotoandplay.smartfoxserver.extensions.ExtensionHelper.joinRoom(sun.nio.ch.SocketChannelImpl,number,number,boolean,string,boolean,boolean).
Also is there a complete stack trace of the error?
Thanks