-
-
Notifications
You must be signed in to change notification settings - Fork 739
Open
Labels
Milestone
Description
Figured out the problem
internal static void AddEvent(string eventName, object id, Action callback, Action value)
{
var call = (Action)events.GetOrAdd(eventName, callback);
if (call == null)
{
BridgeConnector.Socket.On(eventName + id, () =>
{
((Action)events[eventName])();
});
BridgeConnector.Socket.Emit($"register-{eventName}", id);
}
call += value;
events[eventName] = call;
}@softworkz could you advise whether it requires any locks and if so where.
Originally posted by @agracio in #913 (comment)