B4J Question TCP server

Philip Prins

Active Member
Licensed User
How to create a TCP server that accepts multiple clients and send data that it receives back to the connected clients.
I have searched the forum but the only example i could find was the chatroom example.
I want to use it to send a received audio stream back to the clients except the sender

Regards,
Philip
 

Erel

Administrator
Staff member
Licensed User
Are you building the clients with B4A? If yes then you should try it with a WebSocket server. The downside of web sockets is the data is sent as strings. This means that you will need to encode it as base 64 string.

See this tutorial: http://www.b4x.com/android/forum/threads/40272/#content

The upside is that it will be the simplest to implement and the most reliable.
 
Top