Michael Sigl
01/21/2021, 12:52 PMSerVB
01/21/2021, 2:36 PMMichael Sigl
01/21/2021, 2:55 PMSerVB
01/21/2021, 3:00 PMMichael Sigl
01/21/2021, 3:27 PMSerVB
01/21/2021, 3:36 PMAnd maybe tell me how to connect this via Hamachi or ZeroTierI've used them long ago and I just know it will work. It should be easy, just try watching youtube demos and/or google.
Can you maybe give a quick example what the code would look like in local multiplayer?Websocket is event based messaging system. Usually, you just need to define some actions: what to do when the connection starts (onOpen), what to do when message is received (onMessage), what to do when the connection stops (onClose). Also, you can send a message any time. For messages, you can use Strings or ByteArrays. Again, there are plenty examples about Websockets on the Internet, they should make the idea clearer to you. I see that KorGE has WebSocket implementation but I haven't used this one: https://korlibs.soywiz.com/korio/#websocket-client
Michael Sigl
01/21/2021, 5:15 PMtobsef
01/21/2021, 7:33 PMMichael Sigl
01/22/2021, 12:08 PM