tcp, udp

Just starting out? Need help? Post your questions and find answers here.
ebelouet
Posts: 21
Joined: Mon Apr 08, 2019 9:46 am

tcp, udp

Post by ebelouet »

Hi,

I searching how using tcp udp communication with SpiderBasic ?

Sincerely
Eric
User avatar
Arbrakaan
Posts: 91
Joined: Mon Feb 24, 2014 10:54 pm
Location: Geneva
Contact:

Re: tcp, udp

Post 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.
ebelouet
Posts: 21
Joined: Mon Apr 08, 2019 9:46 am

Re: tcp, udp

Post by ebelouet »

thank a lot
Post Reply