[ARCHIVED] FastNet2 - a fast, efficient & lightweight network library

If you using SignalBehavior to Deferred, you dont need to change the FastNet2 Functional API, but the problem is FastNet2 system receiver may not working on Deferred option, i havent tested this to Latest FastNet2. but previous version (idk which) that i tested for experimental deferred when signalbehavior announced which is working without any problem.

Bro I can’t even pass a number to the server
image
Even the client:
image

did u use RemoteFunction? or :Wait function?

I used RemoteEvent with Fire or Fires function

can i see the code you used?? ####

--!strict

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local FastNet2 = require(ReplicatedStorage:WaitForChild("FastNet2"))

local testRemote: any = FastNet2:Create("Test", "RemoteEvent")
task.wait(1)
testRemote:Fires(1, 2) -- [FastNet2]: table or number idk XD
--!strict

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local FastNet2 = require(ReplicatedStorage:WaitForChild("FastNet2"))

local testRemote: any = FastNet2:Create("Test", "RemoteEvent")
testRemote:Listen(true, function(...)
	print(...)
end)

Edit: I have to temporary wrap it as a table instead of tuple. This can cause FastNet2 fires twice

wdym by twice? could u explain?

Commit (8.6)

--!strict
--Server
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local FastNet2 = require(ReplicatedStorage:WaitForChild("FastNet2"))

local testRemote = FastNet2:Create("Test", "re")
task.wait(5) -- Wait for 5 seconds
testRemote:Fires({2, 3}) -- This supposed to fire it at once
--!strict
--Client
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local FastNet2 = require(ReplicatedStorage:WaitForChild("FastNet2"))

local testRemote: any = FastNet2:Create("Test", "re")
testRemote:Listen(true, function(...)
	print(...)
end)

Output:
image
cough cough FastNet2 still buggy
Edit: I will report any bug through direct message due to this post is devolving into tech support :skull:

your right, FastNet2 is still on dev version, once its on beta or stable will be on new post

which method you use that happen a twice fired? table or tuple

table

ohmygod30charactersissoannoying

Patch

FastNet2 tested with Deferred SignalBehavior, for now FastNet2 dont have problem while using deferred signalbehavior. (:Connect)

I know you can just get the file from the test place or github but you should make a release on github of the rbxm so its a little easier to do or make it a roblox model, looks good though

.rbxl file available on forum and the place on top most with titled/texted Standalone, not for rbxm yet

Custom BindableEvent Implementation

  • Yes
  • No

0 voters

Update Fix

  • Fix Invoke of Signal & Other causes Invoke issued

no build version changes here so no update notified on update checker
Added Standalone .RBXM to Github with lastest update
Available with Standalone version on Forum & Github

Do GUID (UUID) Key Code needed on RemoteFunction as extra security validation?

If yes, then this may waste some byte size due extra GUID value on data but this help to prevent being exploitable even the receiver data is already bit unreadable
  • Yes
  • No

0 voters

Note: Currently RemoteFunction may having a random chance to loss on retrieving call or call being corrupted.