mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 18:03:30 +00:00
Improved callback handlers to get UDP socket stuff
This commit is contained in:
@@ -4,7 +4,7 @@ addMissionEventHandler ["ExtensionCallback", {
|
|||||||
params ["_name", "_function", "_data"];
|
params ["_name", "_function", "_data"];
|
||||||
|
|
||||||
switch (_name) do {
|
switch (_name) do {
|
||||||
case "WEBSOCKET": {
|
case "UDP SOCKET": {
|
||||||
[_function, "success", _name] call FUNC(notify);
|
[_function, "success", _name] call FUNC(notify);
|
||||||
|
|
||||||
switch (_function) do {
|
switch (_function) do {
|
||||||
@@ -17,13 +17,13 @@ addMissionEventHandler ["ExtensionCallback", {
|
|||||||
default {};
|
default {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
case "WEBSOCKET WARNING": {
|
case "UDP SOCKET WARNING": {
|
||||||
[_function, "warning", "WEBSOCKET"] call FUNC(notify);
|
[_function, "warning", "UDP Socket"] call FUNC(notify);
|
||||||
};
|
};
|
||||||
case "WEBSOCKET ERROR": {
|
case "UDP SOCKET ERROR": {
|
||||||
[_function, "error", _name] call FUNC(notify);
|
[_function, "error", _name] call FUNC(notify);
|
||||||
|
|
||||||
if (_function == "Websocket is not running") then {
|
if (_function == "UDP Socket is not running") then {
|
||||||
SETVAR(player,EGVAR(client,eudConnected),false);
|
SETVAR(player,EGVAR(client,eudConnected),false);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user