RaceDepartment Store

Upcoming Events

AC events on Simracing.GP ACC events on Simracing.GP Automobilista 2 events RaceRoom events rFactor 2 events
udp2ws - UDP to WebSockets bridge

udp2ws - UDP to WebSockets bridge v0.3.2

Log in to download, or make sure to confirm your account via email
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...
Author
germanrcuriel
Downloads
79
File size
28.5 MB
Views
2,634
First release
Last update
User rating
0.00 star(s) 0 ratings
Top