PageSourceSearch

https://sicau.pascualbravo.edu.co/SICAU/signalr/hubs

js pascualbravo.edu.co collected 2026-09-24 09:50:46 UTC 4,477 bytes, 114 lines download raw bytes

1/*!
2 * ASP.NET SignalR JavaScript Library v2.2.2
3 * http://signalr.net/
4 *
5 * Copyright (c) .NET Foundation. All rights reserved.
6 * Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
7 *
8 */
9
10/// <reference path="..\..\SignalR.Client.JS\Scripts\jquery-1.6.4.js" />
11/// <reference path="jquery.signalR.js" />
12(function ($, window, undefined) {
13    /// <param name="$" type="jQuery" />
14    "use strict";
15
16    if (typeof ($.signalR) !== "function") {
17        throw new Error("SignalR: SignalR is not loaded. Please ensure jquery.signalR-x.js is referenced before ~/signalr/js.");
18    }
19
20    var signalR = $.signalR;
21
22    function makeProxyCallback(hub, callback) {
23        return function () {
24            // Call the client hub method
25            callback.apply(hub, $.makeArray(arguments));
26        };
27    }
28
29    function registerHubProxies(instance, shouldSubscribe) {
30        var key, hub, memberKey, memberValue, subscriptionMethod;
31
32        for (key in instance) {
33            if (instance.hasOwnProperty(key)) {
34                hub = instance[key];
35
36                if (!(hub.hubName)) {
37                    // Not a client hub
38                    continue;
39                }
40
41                if (shouldSubscribe) {
42                    // We want to subscribe to the hub events
43                    subscriptionMethod = hub.on;
44                } else {
45                    // We want to unsubscribe from the hub events
46                    subscriptionMethod = hub.off;
47                }
48
49                // Loop through all members on the hub and find client hub functions to subscribe/unsubscribe
50                for (memberKey in hub.client) {
51                    if (hub.client.hasOwnProperty(memberKey)) {
52                        memberValue = hub.client[memberKey];
53
54                        if (!$.isFunction(memberValue)) {
55                            // Not a client hub function
56                            continue;
57                        }
58
59                        subscriptionMethod.call(hub, memberKey, makeProxyCallback(hub, memberValue));
60                    }
61                }
62            }
63        }
64    }
65
66    $.hubConnection.prototype.createHubProxies = function () {
67        var proxies = {};
68        this.starting(function () {
69            // Register the hub proxies as subscribed
70            // (instance, shouldSubscribe)
71            registerHubProxies(proxies, true);
72
73            this._registerSubscribedHubs();
74        }).disconnected(function () {
75            // Unsubscribe all hub proxies when we "disconnect".  This is to ensure that we do not re-add functional call backs.
76            // (instance, shouldSubscribe)
77            registerHubProxies(proxies, false);
78        });
79
80        proxies['HubSicau'] = this.createHubProxy('HubSicau'); 
81        proxies['HubSicau'].client = { };
82        proxies['HubSicau'].server = {
83            agregarAGrupo: function (nombreDeGrupo) {
84                return proxies['HubSicau'].invoke.apply(proxies['HubSicau'], $.merge(["AgregarAGrupo"], $.makeArray(arguments)));
85             },
86
87            eliminarDeGrupo: function (nombreDeGrupo) {
88                return proxies['HubSicau'].invoke.apply(proxies['HubSicau'], $.merge(["EliminarDeGrupo"], $.makeArray(arguments)));
89             },
90
91            enviar: function (nombre, mensaje) {
92                return proxies['HubSicau'].invoke.apply(proxies['HubSicau'], $.merge(["Enviar"], $.makeArray(arguments)));
93             },
94
95            enviarNuevoRequerimiento: function (espacioFisico, observaciones) {
96                return proxies['HubSicau'].invoke.apply(proxies['HubSicau'], $.merge(["EnviarNuevoRequerimiento"], $.makeArray(arguments)));
97             },
98
99            hello: function () {
100                return proxies['HubSicau'].invoke.apply(proxies['HubSicau'], $.merge(["Hello"], $.makeArray(arguments)));
101             },
102
103            modificarCuposDeGruposDeHorario: function (listadoDeGrupos) {
104                return proxies['HubSicau'].invoke.apply(proxies['HubSicau'], $.merge(["ModificarCuposDeGruposDeHorario"], $.makeArray(arguments)));
105             }
106        };
107
108        return proxies;
109    };
110
111    signalR.hub = $.hubConnection("/SICAU/signalr", { useDefaultPath: fal
111se });
112    $.extend(signalR, signalR.hub.createHubProxies());
113
114}(window.jQuery, window));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.