Committed by
Gerrit Code Review
GUI: Deleted deprecated code.
Change-Id: I5b2655c63cfc0d4f2ea29647e24f86c5183650b6
Showing
1 changed file
with
0 additions
and
49 deletions
1 | -/* | ||
2 | - * Copyright 2015 Open Networking Laboratory | ||
3 | - * | ||
4 | - * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | - * you may not use this file except in compliance with the License. | ||
6 | - * You may obtain a copy of the License at | ||
7 | - * | ||
8 | - * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | - * | ||
10 | - * Unless required by applicable law or agreed to in writing, software | ||
11 | - * distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | - * See the License for the specific language governing permissions and | ||
14 | - * limitations under the License. | ||
15 | - */ | ||
16 | - | ||
17 | -/* | ||
18 | - DEPRECATED: to be deleted | ||
19 | - ONOS GUI -- Remote -- Web Socket Event Service | ||
20 | - */ | ||
21 | -(function () { | ||
22 | - 'use strict'; | ||
23 | - | ||
24 | - var sid = 0; | ||
25 | - | ||
26 | - angular.module('onosRemote') | ||
27 | - .factory('WsEventService', [function () { | ||
28 | - | ||
29 | - function sendEvent(ws, evType, payload) { | ||
30 | - var p = payload || {}; | ||
31 | - | ||
32 | - ws.send({ | ||
33 | - event: evType, | ||
34 | - sid: ++sid, | ||
35 | - payload: p | ||
36 | - }); | ||
37 | - } | ||
38 | - | ||
39 | - function resetSid() { | ||
40 | - sid = 0; | ||
41 | - } | ||
42 | - | ||
43 | - return { | ||
44 | - sendEvent: sendEvent, | ||
45 | - resetSid: resetSid | ||
46 | - }; | ||
47 | - }]); | ||
48 | - | ||
49 | -}()); |
-
Please register or login to post a comment