RoRPC - A bidirectional remote procedure call system built for roblox

Hey Developers,

Introducing RoRPC, a bi-directional RPC system built for Roblox & Node servers. This tool is framework-agnostic and is compatible with any HTTP server (Express, Sapphire, Hono, NestJS…).

This tool leverages Roblox OpenCloud messaging services to create a bi-directional communication tool where your servers can speak to roblox, and roblox can speak to your servers without the hassle of hundreds of messy HTTP requests.

I’ve included examples in the link below.

Let me know if you have any questions or bugs.
Note this hasnt been fully battle tested and it still has updates pending to it such as Server authentication middleware.

Roblox Server Adapter:

local RPCClient = RoRPC.new("serverUrl", "rpc-global")
RPCClient:Init():andThen(function()
	RPCClient:RegisterMethod("GetRobloxInfo", function(args)
		print("Request for roblox info received.")
		return "Here's the roblox info!"
	end)
	local RequestSuccess, Data = RPCClient:CallServer("GetServerData", {}):await()
	print(RequestSuccess, HttpService:JSONEncode(Data))
end)

Node Server Adapter:

5 Likes

RoRPC@2.0.1

Changed

  • Migrated from CJS to ESM.