B4J Library jWebSocketClient library

Discussion in 'B4J Libraries & Classes' started by Erel, May 14, 2014.

  1. Erel

    Erel Administrator Staff Member Licensed User

    With this library you can implement WebSocket clients. The API is identical to the B4A library: http://www.basic4ppc.com/android/forum/threads/websocket-client-library.40221/#content (except of the object name which is WebSocketClient).

    It is based on Jetty WebSocket client implementation.

    The push client example was ported to B4J: http://www.basic4ppc.com/android/forum/threads/custom-websocket-based-push-framework.40272/

    [​IMG]

    [​IMG]

    upload_2014-5-14_12-48-18.png

    This means that you can now implement an (almost) always connected solution with bi-directional communication running on Androids, desktops and browsers.

    The library is included in the IDE.
     

    Attached Files:

    Last edited: Apr 15, 2019
  2. wl

    wl Well-Known Member Licensed User

    Hi Erel,

    As far as I know the library already existed for a few weeks: is there anything new in this library that made you create this post about an hour ago ?
    Or has the B4J client library been added ?

    Thanks
     
    Gabino A. de la Gala likes this.
  3. Erel

    Erel Administrator Staff Member Licensed User

    This is the B4J additional libraries forum => This is a B4J library.
     
    wl likes this.
  4. billzhan

    billzhan Active Member Licensed User

    Great. Works fine on b4j 2.2beta1.
     
  5. wl

    wl Well-Known Member Licensed User

    Stupid me... :)
     
    victormedranop likes this.
  6. Silv

    Silv Member Licensed User

    Hi Erel can you give me the code of your server in the samples? ws://basic4ppc.com:51042/push/b4a_ws2 this one
     
  7. Erel

    Erel Administrator Staff Member Licensed User

  8. KY Leng

    KY Leng Member Licensed User

    Hi Erel,

    I am not sure whether the server can be implemented on android device or not?
    Secondly, do we need static IP for the server or only hosting is enough ?

    Best regards,
     
  9. Erel

    Erel Administrator Staff Member Licensed User

  10. victormedranop

    victormedranop Well-Known Member Licensed User

    Is there a way to stop the server and free the tcp port used?

    Regards,

    Victor
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    This thread is about the WebSocket client library. Please start a new thread for your question.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice