S
S
Sergey2017-05-01 16:04:58
Internationalization and localization
Sergey, 2017-05-01 16:04:58

Fast multiplatform library for sockets?

The project requires a library that provides a very lightweight implementation of UDP sockets in three languages: JavaScript, Java (Android), Swift (iOS).
It is necessary to send the state of the client to the server and vice versa with great frequency (you need good serialization of messages and compression).
One server - one client (single socket).

I would like that on the server (JS):

server = library.createServer(port, event => { ...MESSAGE HANDLER... } )
server.send('sdfsdfgdsg');

Something like this on clients:
client = library.connect(hostname, event => { ...MESSAGE HANDLER... } )
client.send('sdgfsdfgdsfg');


What do you advise?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question