Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #22 from Orange-OpenSource/minifyProblem#5
Browse files Browse the repository at this point in the history
Fix issue #5 ,
  • Loading branch information
delphin-germa-orange authored Jul 20, 2018
2 parents b5344e6 + 46e3b18 commit 3f63145
Show file tree
Hide file tree
Showing 15 changed files with 225 additions and 181 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ install:
- npm install
script:
- npm run doc
#- npm test
- npm test
deploy:
- provider: pages
local_dir: public
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@types/ws": "^3.0.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-preset-es2015": "^6.24.1",
"chai": "^4.1.2",
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.1.0",
"istanbul": "^0.4.5",
Expand All @@ -56,7 +57,8 @@
"ts-node": "^3.3.0",
"tslint": "^4.5.1",
"typedoc": "^0.8.0",
"typescript": "^2.4.2"
"typescript": "^2.4.2",
"ws": "^5.2.2"
},
"nyc": {
"include": [
Expand All @@ -75,4 +77,3 @@
"instrument": true
}
}

3 changes: 1 addition & 2 deletions src/channel/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {OCast} from "../ocast";
import {Transport} from "../protocol/transport";
import {TransportMessage} from "../protocol/transport.message";
import {EnumError} from "../type/enum.error";
import {EnumProtocol} from "../type/enum.protocol";
import {EnumTransport} from "../type/enum.transport";
import {Logger} from "../util/logger";

Expand Down Expand Up @@ -65,7 +64,7 @@ export class Channel {
*/
protected sendReply(id: number, dst: string, data: any) {
const message = new Transport(UUID, dst, EnumTransport.REPLY, id, new TransportMessage(this.name, data));
message.setStatus(EnumProtocol.OK_STATUS as string);
message.setStatus("OK");
Log.debug(TAG + "sendReply : " + JSON.stringify(message));
this.sendMessage(message);
}
Expand Down
14 changes: 14 additions & 0 deletions src/channel/enum.media.messages.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

export enum EnumMediaMessage {
PAUSE = "pause",
RESUME = "resume",
SEEK = "seek",
TRACK = "track",
STOP = "stop",
CLOSE = "close",
VOLUME = "volume",
GET_PLAYBACK_STATUS = "getPlaybackStatus",
GET_METADATA = "getMetadata",
MUTE = "mute",
PREPARE = "prepare",
};
Loading

0 comments on commit 3f63145

Please sign in to comment.