Copy link to clipboard
Copied
So after searching around for days on Google and getting no answer, I figured I'd ask how to send multiple messages to a socket. I use the method writeUTFBytes and readUTFBytes, but it only sends and listens to one message over at a time. This is important for what I'm trying to do because I'm trying to send over messages of keys being pressed by the clients. Obviously multiple keys are pressed at a time, so it needs to be able to send a couple messages over in one. I tried making an array but you can't send those over using writeUTF or writeUTFBytes because it returns an error saying I need to use a string. Any ideas? Thank you.
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now