udp2ws - UDP to WebSockets bridge

udp2ws - UDP to WebSockets bridge v0.3.2

Login or Register an account to download this content
udp2ws
This Assetto Corsa Dedicated Server plugin creates an UDP Relay (to chain plugins) and proxies all the communication through WebSockets.

Requirements
  • Assetto Corsa Dedicated Server
  • Any Linux x64 distro or Windows x64 (can be built for other OS, architectures)
Live example

You can try this websockets service at http://udp2ws.sim-racing.es/.

Just click connect to play with a real Assetto Corsa Test Server.

You can also join the server to see the results of specific events. Server name is "udp2ws plugin test".

If is not up, you can always use your installation address to try it.

Installation


Unzip and place the files in the same host you have Assetto Corsa Dedicated Server.

Open udp2ws.ini file with your favorite editor and modify as you need. Everything is explained in place.

Code:
$ nohup ./udp2ws 2>&1 &

This will keep the application running in the background (linux example).

Usage example

You can connect through the websocket server (socket.io server)

HTML:
<script src="http://localhost:30000/socket.io/socket.io.js"></script>
<script>
  var socket = io('http://localhost:30000');
  socket.emit('broadcast_message', 'Message sent from udp2ws');
</script>

Replace localhost by the server IP running udp2ws.

This specific command sends a message to everyone connected to the server.

Documentation at https://github.com/germanrcuriel/assetto-corsa-server-udp2ws

Latest updates

  1. v0.3.2

    - Don't show /admin messages in websockets
  2. v0.3.1

    Fix broadcasting messages to happen only once each time an UDP event is triggered
  3. Broadcasting instead of emiting to save resources

    - Upgraded dependencies - Server UDP messages are now broadcasted to everyone instead of...

Latest News

Author
germanrcuriel
Downloads
98
File size
28.5 MB
Views
4,799
First release
Last update
User rating
0.00 star(s) 0 ratings

How long have you been simracing

  • < 1 year

    Votes: 375 16.1%
  • < 2 years

    Votes: 256 11.0%
  • < 3 years

    Votes: 247 10.6%
  • < 4 years

    Votes: 181 7.8%
  • < 5 years

    Votes: 304 13.1%
  • < 10 years

    Votes: 261 11.2%
  • < 15 years

    Votes: 167 7.2%
  • < 20 years

    Votes: 129 5.6%
  • < 25 years

    Votes: 100 4.3%
  • Ok, I am a dinosaur

    Votes: 302 13.0%
Back
Top