PageSourceSearch

https://compass.centralmethodist.edu/ICS/signalr/hubs?v=2025.1.0.2

js centralmethodist.edu collected 2026-10-01 11:29:59 UTC 5,330 bytes, 131 lines download raw bytes

1/*!
2 * ASP.NET SignalR JavaScript Library 2.4.3
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                        // Use the actual user-provided callback as the "identity" value for the registration.
60                        subscriptionMethod.call(hub, memberKey, makeProxyCallback(hub, memberValue), memberValue);
61                    }
62                }
63            }
64        }
65    }
66
67    $.hubConnection.prototype.createHubProxies = function () {
68        var proxies = {};
69        this.starting(function () {
70            // Register the hub proxies as subscribed
71            // (instance, shouldSubscribe)
72            registerHubProxies(proxies, true);
73
74            this._registerSubscribedHubs();
75        }).disconnected(function () {
76            // Unsubscribe all hub proxies when we "disconnect".  This is to ensure that we do not re-add functional call backs.
77            // (instance, shouldSubscribe)
78            registerHubProxies(proxies, false);
79        });
80
81        proxies['attendanceHub'] = this.createHubProxy('attendanceHub'); 
82        proxies['attendanceHub'].client = { };
83        proxies['attendanceHub'].server = {
84            checkInStudent: function (gradingStatusId, sessionId, studentId) {
85                return proxies['attendanceHub'].invoke.apply(proxies['attendanceHub'], $.merge(["CheckInStudent"], $.makeArray(arguments)));
86             },
87
88            getConnectionId: function () {
89                return proxies['attendanceHub'].invoke.apply(proxies['attendanceHub'], $.merge(["GetConnectionId"], $.makeArray(arguments)));
90             },
91
92            setDefaultGradingStatus: function (gradingStatusId, sessionId) {
93                return proxies['attendanceHub'].invoke.apply(proxies['attendanceHub'], $.merge(["SetDefaultGradingStatus"], $.makeArray(arguments)));
94             }
95        };
96
97        proxies['chatHub'] = this.createHubProxy('chatHub'); 
98        proxies['chatHub'].client = { };
99        proxies['chatHub'].server = {
100            joinRoom: function (portletId) {
101                return proxies['chatHub'].invoke.apply(proxies['chatHub'], $.merge(["JoinRoom"], $.makeArray(arguments)));
102             },
103
104            leaveRoom: function () {
105                return proxies['chatHub'].invoke.apply(proxies['chatHub'], $.merge(["LeaveRoom"], $.makeArray(arguments)));
106             },
107
108            send: function (roomName, message) {
109                return proxies['chatHub'].invoke.apply(proxies['chatHub'], $.merge(["Send"], $.makeArray(arguments)));
110             }
111        };
112
113        proxies['portalHub'] = this.createHubProxy('portalHub'); 
114        proxies['portalHub'].client = { };
115        proxies['portalHub'].server = {
116            getConnectionId: function () {
117                return proxies['portalHub'].invoke.apply(proxies['portalHub'], $.merge(["GetConnectionId"], $.makeArray(arguments)));
118             },
119
120            sendLoginWarning: function (userId) {
121                return proxies['portalHub'].invoke.apply(proxies['portalHub'], $.merge(["SendLoginWarning"], $.makeArray(arguments)));
122             }
123        };
124
125        return proxies;
126    };
127
128    signalR.hub = $.hubConnection("/ICS/signalr", { useDefaultPath: fal
128se });
129    $.extend(signalR, signalR.hub.createHubProxies());
130
131}(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.