Page 1 of 1

tcp, udp

Posted: Tue Apr 09, 2019 8:38 am
by ebelouet
Hi,

I searching how using tcp udp communication with SpiderBasic ?

Sincerely
Eric

Re: tcp, udp

Posted: Tue Apr 09, 2019 9:08 am
by Arbrakaan
hi,

SpideBasic have no UDP communication protocol. But, it is a JS engine, so you can maybe use WebRTC to communicate with an other client.

Take a look at WebRTC's RTCDataChannel API ( https://www.html5rocks.com/en/tutorials ... achannels/ )
The RTCDataChannel API supports a flexible set of data types. The API is designed to mimic WebSocket exactly, and RTCDataChannel supports strings as well as some of the binary types in JavaScript such as Blob, ArrayBuffer and ArrayBufferView. These types can be helpful when working with file transfer and multiplayer gaming.
And the WebRCT official site: https://webrtc.org/

Do you try WebSocket ? Maybe it is a good alternative for your project ?

maybe @Peter or @falsam can help on this ?

cheers.

Re: tcp, udp

Posted: Tue Apr 09, 2019 12:32 pm
by ebelouet
thank a lot