I am trying to use the Basic chat protocol with PSDK (not the Flex protocol) and it is not working.
BasicChatProtocol basicChat = new BasicChatProtocol(new Endpoint("<host>", <port>));
basicChat.open();
RequestRegister requestReg = RequestRegister.create("chatagent", UserType.Agent, "chat", null, null);
This code connects to the chat server fine, basic chat is recognized but the above parameters are NOT passed to the chat server so the login obviously fails. this is from the chat server logs, clearly nickname and agent types were not received by the chat server
2021-01-25T13:05:55.548 Trc 59220 input (packet of size=612 received) from conn_id=19:5159 (type=BASIC): basic reqRegister
refId '1'
Nickname ''
userType 'UNKNOWN'
personId ''
I also tried this format but its the same, the login details are not passed to the chat server
requestReg = RequestRegister.create();
requestReg.setUserNickname("chatagent");
requestReg.setUserType(UserType.Agent);
requestReg.setPersonId("chat");
Has anybody implemented basic chat protocol before? I have not found a working example anywhere.
Thanks
#DigitalChannels------------------------------
Zsolt Belicza
British Telecommunications PLC
------------------------------