Author Topic: Registering in Chat applicaiton.  (Read 6567 times)

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

sanjay

  • Guest
Registering in Chat applicaiton.
« on: October 30, 2008, 04:02:10 PM »
Hi

        I am using  the RequestRegister class in the BasicChat.Request namesace.

        While registering I am setting the following properties.

        nickName = "abc";
        userType = UserType.Supervisor;
        personID = "";
        userData = new keyvalueCollection();
        TimeZoneOffset = 20

        I always get the response as user already registered.
 
        Why is that so. How could I register.

Offline mhsrinivasan

  • Newbie
  • *
  • Posts: 21
  • Karma: 1
Re: Registering in Chat applicaiton.
« Reply #1 on: November 20, 2008, 01:47:33 PM »
you need to specify the [b]agent id[/b] in the place of[b] person id[/b]

Offline AlexeyK

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Registering in Chat applicaiton.
« Reply #2 on: December 24, 2008, 01:35:08 AM »
In some previous versions of PSDK there was automatic registration implemented upon Open method (so when establishing the socket connection). The registration could be performed only once per connection – that is why you are getting such a response from ChatServer.

You need to turn off auto-registration during Open (which is by default I think) – then you will be able to send a specific registration request. For that I believe you need initialize “BasicChatProtocol.UserId” with some dummy string.

Or could specify all these parameters in advance before Open – so you will not need to register separately.

Offline mhsrinivasan

  • Newbie
  • *
  • Posts: 21
  • Karma: 1
Re: Registering in Chat applicaiton.
« Reply #3 on: February 03, 2009, 12:46:48 PM »
How to turn off auto registration?

Marked as best answer by on Today at 03:58:43 AM

Offline AlexeyK

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Registering in Chat applicaiton.
« Reply #4 on: February 14, 2009, 02:05:06 AM »
  • Undo Best Answer
  • you need initialize “BasicChatProtocol.UserId” with some dummy string.

    Offline AlexeyK

    • Newbie
    • *
    • Posts: 9
    • Karma: 0
    Re: Registering in Chat applicaiton.
    « Reply #5 on: February 14, 2009, 02:15:01 AM »
    Actually - there is an attribute "AutoRegister" in BasicChatProtocol object - you could just set it to false.