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

tcp, udp

by ebelouet Tue Apr 09, 2019 8:38 am

Hi,

I searching how using tcp udp communication with SpiderBasic ?

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

Re: tcp, udp

by Arbrakaan Tue Apr 09, 2019 9:08 am

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/webrtc/datachannels/ )

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: 6
Joined: Mon Apr 08, 2019 9:46 am

Re: tcp, udp

by ebelouet Tue Apr 09, 2019 12:32 pm

thank a lot
Return to Coding Questions

Who is online

Users browsing this forum: No registered users and 4 guests