ExtensionRequest cannot take null params
Posted: 15 Aug 2014, 16:34
Hi there, I've got this line of code to send a request to the server:
GetSFS().Send(new ExtensionRequest("SetEveryoneEnteredRoom", new SFSObject(), m_Room));
I was passing null since there are no arguments to send, like this;
GetSFS().Send(new ExtensionRequest("SetEveryoneEnteredRoom", null, m_Room));
but it didn't work unless I pass an actual SFSObject that won't be used.
Is that normal?
Cause this is with unity client, the flash client can pass null and it works but not the unity client, the server never gets the request.
Thoughts?
GetSFS().Send(new ExtensionRequest("SetEveryoneEnteredRoom", new SFSObject(), m_Room));
I was passing null since there are no arguments to send, like this;
GetSFS().Send(new ExtensionRequest("SetEveryoneEnteredRoom", null, m_Room));
but it didn't work unless I pass an actual SFSObject that won't be used.
Is that normal?
Cause this is with unity client, the flash client can pass null and it works but not the unity client, the server never gets the request.
Thoughts?