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?
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!
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
Thanks for you answer!
Another question, There is a way to getRoomList() through an Extension? If yes, How?
Re: HELP!
IdanMasas wrote:There is a way to getRoomList() through an Extension? If yes, How?
Yes. Read up on the Zone interface.
Re: HELP!
Rob wrote:IdanMasas wrote:There is a way to getRoomList() through an Extension? If yes, How?
Yes. Read up on the Zone interface.
This is returning me this error: "Error in extension [ loggedIn.as ]: ReferenceError: "getRoomList" is not defined."
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!
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
[ WARNING ] > InternalError: Can't find method it.gotoandplay.smartfoxserver.extensions.ExtensionHelper.joinRoom(sun.nio.ch.SocketChannelImpl,number,number,boolean,string,boolean,boolean).
This is what I'm getting now. I'm so confused idk why is it not working.
Re: HELP!
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
By the way, Please look at my new post i just posted: viewtopic.php?f=4&t=22714
Thank you so much for your quick responds!
Re: HELP!
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
Hey, I don't want to interrupt you but I have to understand how to do it.
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!
IdanMasas wrote:[ WARNING ] > InternalError: Can't find method it.gotoandplay.smartfoxserver.extensions.ExtensionHelper.joinRoom(sun.nio.ch.SocketChannelImpl,number,number,boolean,string,boolean,boolean).
It seems like this could be caused by Extension code.
Also is there a complete stack trace of the error?
Thanks
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 39 guests