I want to create a websocket server to push financial data to connected clients from our mysql server ( clients will use their own solution to connect to our websocket ) Which tutorial on b4x forums should I follow ? Autoconnecting websocket tutorial or general webapps tutorial that consists a websocket client ?
This library allows you to create WebSocket connections with servers that support WebSockets. It is based on this open source project: http://autobahn.ws/android/# The main benefit of this library is that you can use it to communicate with B4J WebApp solutions. The attached example includes a...
I have a question with this. In this example, to send the servertime to clients it is used:
ws.RunFunction("ServerTime", Array As Object(DateTime.Time(DateTime.Now)))
I want to send a value from a mysql row and send it to clients,lets say usdvalue as int. Will i still use ws.runfunction ? How can i just send the int value ?
Thanks but it always uses this format when sending to clients when I conenct with a client. My users will not use b4x, they will connect to websocket regularly so I only want to send What I want to send, is it possible to not to send prop: servertime and eytpe: runfunction and value ? which are added automaitaclly ?
You are right. What I am trying to do is, serve the data on mysql server which has price for latest currency pairs, to users connected via a weboscket client(not a b4x client).