I want to create a Pictionary kind of app where multiple users can play and guess the drawing made by one person. How is it possible to sync the drawing one device to others globally?
You should convert your drawing to a bitmap string. And then send it to the other device using:
You can have a good explanation here
You can do this using SocketIO
, Create a connection with multiple devices using SocketIO, To send data to another device by socket.emit
method and get the same thing by socket.on
on the receiver side.
See this example for realtime update/share data using socket IO.
https://www.appcoda.com/socket-io-chat-app/
https://medium.com/@spiromifsud/realtime-updates-in-ios-swift-4-using-socket-io-with-mysql-and-node-js-de9ae771529
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With