websocket

  1. Peachy

    B4J Question [ABMaterial] Websocket losing connection

    Hello, having an issue with our ABMaterial service, we have it set up behind an nginx reverse proxy which connects through ssl to cloudflare for our URL. For some reason recently the pages websocket has started to drop connection and reload itself, this happens on any page. if you would like to...
  2. shadowdevfr

    Android Question Using websocket client with an api that needs an auth after the connection.

    Hi. It's been a day i've been trying to figure out how to use this api, wich needs a websocket to return a server's console output. Here are the docs: I got the token and the websocket link, but I have no idea how to connect to the websocket and login after the connection by sending...
  3. bdunkleysmith

    B4J Question [SOLVED] Websocket connection to MQTT based API

    I am trying to connect to a data streaming API and below is an extract from the API documentation (in red italics). Connection to the message broker is made using a Websocket connection and the message broker makes use of the MQTT protocol. So my initial obstacle is that I understand that...
  4. Star-Dust

    B4J Library [B4X] xHttpServer

    It is a personal project of mine that I started as a hobby on B4i and it has become an interesting project, so that I have modified it to be multiplatform. It is an http server, which allows a browser to navigate on html pages stored on the device. In addition, dynamic pages can also be...
  5. Star-Dust

    B4i Library SD: iHttpServer (beta)

    I started developing a version of the HttpServer Library for iOs. It is still a beta version and not complete, but already functional. You can start using it to test it. Includes WebSocket and QueryElement implementation Digest Auth will be added in the future. I have arrived at a first version...
  6. P

    B4J Question Websockets vs Handlers

    Hello all, I am deciding between which option to go with between WebSockets and server handler for an enterprise web application. use case : User base ?- 300k users. Concurrent connections expected? - 10% during the day - 30k. Two-way communication required? Only on the chat page. What i...
  7. P

    B4J Question Automatic Reconnecting WebSocket-Event fires multiple times

    Hello All, I am using Automatic reconnecting websocket. When the server is stopped and started, the client connects to the server, like the way the name suggests. However, I notice that the button click event is triggered as the same number of times the client loses the connection. Steps to...
  8. L

    B4J Question [B4JServer] Could not locate b4xV5.ini … [ERROR]: missing the html files.

    Please note that I am new to B4J. I have made progress but I am stuck in a frustrating place right now. Any help would be much appreciated. Here is the issue: 1. I am working in a Windows 10/VirtualBox (Ubuntu Server) environment. 2. I am compiling my Win 10 B4J BANanoServer WebSocket PWA based...
  9. K

    Android Question WebView, local html + javascript and the Websocket connection is not working

    Hi All I am trying to make a very simple application that only runs a website in WebView from a local html file in the DirAssets directory. The website contains javascripts that work in my application, except for the Websocket connection options. All scripts from the file work correctly...
  10. bdunkleysmith

    B4J Question [Solved] B4JPackager11 / websocket project problem

    As recommended by @Erel in this thread, I have commenced migrating the communications in my project from http to websocket, however it's not been as simple as I thought it would be. In replacing the http based comms part of my project I hit some "roadblocks". So created a simple project to...
  11. Biswajit

    B4A Library Socket.IO Client Library

    Hi everyone, Here is the Socket.IO Client library wrap for this Github Project. Click here for the B4i wrapper SocketIOClient Author: @Biswajit Version: 2.5 Dependency: OkHttpUtils2 SocketIOClient Method: initialize(EventName As String) connect (host As String, params As String, secure As...
  12. Biswajit

    B4i Library Socket.IO Client Library

    Here is the Socket.IO Client library wrap for this Github Project. Click here for the B4A wrapper iSocketIOClient Author: @Biswajit Version: 1.30 Dependencies: iRandomAccessFile Events: Ack (data As String) CustomUserEvents (data As List, ack As Object) OnConnect (data As List) OnConnecting...
  13. M

    B4J Question Websocket RunFunction/Flush

    Hi Evreyone! I'd like to know if the following code it's syncronous or asyncronous (where 'ws' is a websocket): ws.RunFunction("xxxxx", Null) ws.Flush More exactly if an hight latency of the connection or a low speed of the client could have a reflection on the...
  14. LucaMs

    B4J Question More than one room in WebApp ChatRoom tutorial

    If I'm not mistaken, in the WebApp Chatroom tutorial the chat room is represented by the ChatShared code module. If you want to create more than one chat room, it is obviously necessary that this is a class; should the instances of this class be stored in a thread safe map declared and...
  15. Jmu5667

    Wish WebSocket Handler B4X

    Hello It would be great to have a built in PING function for the explicit purpose of keeping the data connection open. This would really apply on android 8.0+ when a service has a data connection open but you want to minimize the amount data to send over the connection. We have successfully...
  16. LucaMs

    B4J Question Websocket, session and websocket handler class instance.

    Reading (and badly answering) this thread: https://www.b4x.com/android/forum/threads/question-about-jserver-websocket-handle.95966/ I learned that if a websocket was closed, the related session would not automatically be destroyed. So now I have many doubts. In my project (b4j - jServer), when...
  17. Kiffi

    German B4J WebApp auf Port 80: IIS Reverse Proxy oder URL-Rewrite?

    Hallo, ich habe mit B4J eine WebApp erstellt. Lokal auf meinem Rechner funktioniert sie wunderbar. http://localhost:meinPort/ (meinPort wäre hier 51234) Nun habe ich die App auf einem IIS-Server eingerichtet. Die Adresse dort lautet http://meineAdresse:meinPort/ Läuft auch ohne Probleme...
  18. LucaMs

    B4J Question [solved] org.eclipse.jetty.websocket.api.MessageTooLargeException

    I get this error on server side (b4j). I searched the forum but I found solutions only for client websockets. BTW I don't know how the websocket is created on server side, it is "received from somewhere" in the websocket handler class; although it seems strange to me, is it possible that the...
  19. LucaMs

    Android Question [solved] WSS - Trust anchor for certification path not found.

    I have a b4j websocket server certainly reachable from outside my network (I mean that I don't have problems with ports, firewalls, ...). I created the keystore as decribed in this tutorial (more precisely as described in wiki.eclipse... linked in that tutorial) and I get that error message...
  20. LucaMs

    B4J Question Websocket & custom types

    How to send/receive custom types? Certainly there is a better method... also because... this does not work :D I'm trying: ' SERVER - WEBSOCKET CLASS Sub Class_Globals Type tProva(ID As Int, Name As String) Private mB4XSerializator As B4XSerializator Private mStringUtils As...
Top