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
99
File size
28.5 MB
Views
5,267
First release
Last update
User rating
0.00 star(s) 0 ratings

Do you prefer licensed hardware?

  • Yes for me it is vital

  • Yes, but only if it's a manufacturer I like

  • Yes, but only if the price is right

  • No, a generic wheel is fine

  • No, I would be ok with a replica


Results are only viewable after voting.
Back
Top