Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #37485 > unrolled thread
| Started by | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| First post | 2019-10-01 05:55 -0700 |
| Last post | 2019-10-02 11:46 +0200 |
| Articles | 7 — 2 participants |
Back to article view | Back to comp.lang.javascript
Make a relay script "websocket" between browser and server or peer to peer ? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-01 05:55 -0700
Re: Make a relay script "websocket" between browser and server or peer to peer ? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-01 06:09 -0700
Re: Make a relay script "websocket" between browser and server or peer to peer ? Arno Welzel <usenet@arnowelzel.de> - 2019-10-01 16:24 +0200
Re: Make a relay script "websocket" between browser and server or peer to peer ? Arno Welzel <usenet@arnowelzel.de> - 2019-10-01 16:26 +0200
Re: Make a relay script "websocket" between browser and server or peer to peer ? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-01 07:33 -0700
Re: Make a relay script "websocket" between browser and server or peer to peer ? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-01 07:36 -0700
Re: Make a relay script "websocket" between browser and server or peer to peer ? Arno Welzel <usenet@arnowelzel.de> - 2019-10-02 11:46 +0200
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-10-01 05:55 -0700 |
| Subject | Make a relay script "websocket" between browser and server or peer to peer ? |
| Message-ID | <3aad42d5-eecb-4680-9e6c-eeaba92649bf@googlegroups.com> |
I read it is not possible to create a websocket, in clientside javascript, "at least not without a chrome plugin", do you have any advice on which one to use? Is there a server, where one can test out such functionality. Like push a button and get back hello world message from server? I just want a really dumbed down example, for my messaging going to be really dumbed down midi messages "peer to peer" or "peer server peer". Low ping latency prioritised.
[toc] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-10-01 06:09 -0700 |
| Message-ID | <cb3b9a2c-60f6-4e6b-aca5-a5c1e3a962f9@googlegroups.com> |
| In reply to | #37485 |
Den tisdag 1 oktober 2019 kl. 14:55:23 UTC+2 skrev Jonas Thörnvall: > I read it is not possible to create a websocket, in clientside javascript, "at least not without a chrome plugin", do you have any advice on which one to use? > > Is there a server, where one can test out such functionality. Like push a button and get back hello world message from server? > > I just want a really dumbed down example, for my messaging going to be really dumbed down midi messages "peer to peer" or "peer server peer". > > Low ping latency prioritised. I've seen there is pages where you send "notes text?" and text over a server to other users, i do not think i have any plugin handling it. So is it XMLHttprequests they use to realay messages to other users?
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2019-10-01 16:24 +0200 |
| Message-ID | <gvh5svFt70pU1@mid.individual.net> |
| In reply to | #37486 |
On 01.10.19 15:09, Jonas Thörnvall wrote: > Den tisdag 1 oktober 2019 kl. 14:55:23 UTC+2 skrev Jonas Thörnvall: >> I read it is not possible to create a websocket, in clientside >> javascript, "at least not without a chrome plugin", do you have any >> advice on which one to use? >> >> Is there a server, where one can test out such functionality. Like >> push a button and get back hello world message from server? >> >> I just want a really dumbed down example, for my messaging going to >> be really dumbed down midi messages "peer to peer" or "peer server >> peer". >> >> Low ping latency prioritised. > > I've seen there is pages where you send "notes text?" and text over a > server to other users, i do not think i have any plugin handling it. > So is it XMLHttprequests they use to realay messages to other users? You can use XHR but also Websockets - as long as you server supports that. Also see: <https://developer.mozilla.org/en-US/docs/Web/API/WebSocket> -- Arno Welzel https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2019-10-01 16:26 +0200 |
| Message-ID | <gvh60nFt70pU2@mid.individual.net> |
| In reply to | #37485 |
On 01.10.19 14:55, Jonas Thörnvall wrote: > I read it is not possible to create a websocket, in clientside > javascript, "at least not without a chrome plugin", do you have any > advice on which one to use? Websockets are no problem at all: <https://developer.mozilla.org/en-US/docs/Web/API/WebSocket> What *exactly* do you want to achieve? > Is there a server, where one can test out such functionality. Like > push a button and get back hello world message from server? > > I just want a really dumbed down example, for my messaging going to > be really dumbed down midi messages "peer to peer" or "peer server > peer". This server can be used for testing: <https://www.websocket.org/echo.html> -- Arno Welzel https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-10-01 07:33 -0700 |
| Message-ID | <8d730e1f-7df0-4dfa-ae2c-db261e598a21@googlegroups.com> |
| In reply to | #37488 |
Den tisdag 1 oktober 2019 kl. 16:26:36 UTC+2 skrev Arno Welzel: > On 01.10.19 14:55, Jonas Thörnvall wrote: > > > I read it is not possible to create a websocket, in clientside > > javascript, "at least not without a chrome plugin", do you have any > > advice on which one to use? > > Websockets are no problem at all: > > <https://developer.mozilla.org/en-US/docs/Web/API/WebSocket> > > What *exactly* do you want to achieve? > > > Is there a server, where one can test out such functionality. Like > > push a button and get back hello world message from server? > > > > I just want a really dumbed down example, for my messaging going to > > be really dumbed down midi messages "peer to peer" or "peer server > > peer". > > This server can be used for testing: > > <https://www.websocket.org/echo.html> > > > -- > Arno Welzel > https://arnowelzel.de Thank you Arno. Well for now i am just interested sending a midimessage "text", to server and echo back to midiport and measure the latency over server.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-10-01 07:36 -0700 |
| Message-ID | <7a5eb2c4-62ec-4495-abaa-4fbd0b08ff00@googlegroups.com> |
| In reply to | #37488 |
Den tisdag 1 oktober 2019 kl. 16:26:36 UTC+2 skrev Arno Welzel: > On 01.10.19 14:55, Jonas Thörnvall wrote: > > > I read it is not possible to create a websocket, in clientside > > javascript, "at least not without a chrome plugin", do you have any > > advice on which one to use? > > Websockets are no problem at all: > > <https://developer.mozilla.org/en-US/docs/Web/API/WebSocket> > > What *exactly* do you want to achieve? > > > Is there a server, where one can test out such functionality. Like > > push a button and get back hello world message from server? > > > > I just want a really dumbed down example, for my messaging going to > > be really dumbed down midi messages "peer to peer" or "peer server > > peer". > > This server can be used for testing: > > <https://www.websocket.org/echo.html> > > > -- > Arno Welzel > https://arnowelzel.de Can these websocket be used send messages peer to peer "web browser to web browser" once you located the ip recepients ove server and distributed back to browsers? Jonas T
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2019-10-02 11:46 +0200 |
| Message-ID | <gvj9uqFc615U1@mid.individual.net> |
| In reply to | #37490 |
On 01.10.19 16:36, Jonas Thörnvall wrote: [...] > Can these websocket be used send messages peer to peer "web browser > to web browser" once you located the ip recepients ove server and > distributed back to browsers? No. Websockets can only be used to connect to a server. If you need connections between clients you need WebRTC and probably a STUN/TURN server to tunnel the data for clients which don't have a public IP address. -- Arno Welzel https://arnowelzel.de
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web