Re: [codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-11 Thread greensoter
Thanks! It works for me now. On Thursday, April 11, 2019 at 4:53:37 AM UTC+2, shannah wrote: > > There is also a WebSocket sample in the SampleRunner > https://github.com/codenameone/CodenameOne/tree/master/Samples > > The sample (a chat app), should run out of the box. Just download the CN1 >

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-11 Thread greensoter
Hi Shai, I changed to Websocket, and it works perfectly for me now. Thanks! On Thursday, April 11, 2019 at 4:14:53 AM UTC+2, Shai Almog wrote: > > Here: https://github.com/shannah/cn1-websockets/ > -- You received this message because you are subscribed to the Google Groups "CodenameOne

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-11 Thread greensoter
Hi Shai, I am making a chat app, with PubNub latest library is working perfectly, the lib version is : pubnub-gson-4.22.0-beta-all.jar , it is very simple to connect to PubNub server to publish and subscribe message. So my question here is, can I directly generate cn1lib for that PubNub

Re: [codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-10 Thread Steve Hannah
There is also a WebSocket sample in the SampleRunner https://github.com/codenameone/CodenameOne/tree/master/Samples The sample (a chat app), should run out of the box. Just download the CN1 sources, open the Sample Runner (instructions at link above), and click "Launch" next to the

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-10 Thread Shai Almog
Here: https://github.com/shannah/cn1-websockets/ -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-10 Thread greensoter
Where can I get the Websockets document and sample code? Then I can implement in my app as well, thanks! On Wednesday, April 10, 2019 at 6:36:58 AM UTC+2, Shai Almog wrote: > > Hi, > I think pubnub cut support for older libraries they implemented. I haven't > paid much attention since

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-09 Thread Shai Almog
Hi, I think pubnub cut support for older libraries they implemented. I haven't paid much attention since websockets proved to be a good substitute and removed the need for solutions like that. -- You received this message because you are subscribed to the Google Groups "CodenameOne

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-09 Thread greensoter
Hi Shai, I used below code to receive the message, but it didn't come. Do I need to execute this subscribe somewhere like original PubNub needs to execute after subscribe. public void subMessage() { Pubnub pubnub = new Pubnub(publishKey, subscribeKey); try

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-07 Thread Shai Almog
This used to work fine. Make sure you included all the dependencies as pubnub included other dependencies. Also make sure you installed the library correctly. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this