Skip to content

Commit

Permalink
feat(deps): update dazejs version to 3.4.1 (#101)
Browse files Browse the repository at this point in the history
Co-authored-by: zewail <zewail@zewaildeMacBook-Pro.local>
  • Loading branch information
czewail and zewail committed Jul 29, 2020
1 parent 51ac3a3 commit 5371591
Show file tree
Hide file tree
Showing 9 changed files with 304 additions and 456 deletions.
3 changes: 2 additions & 1 deletion __tests__/daze/app/example1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { BaseWebsocket, ws, websocket } from '../../../src';
export class Example1 extends BaseWebsocket {
@ws.subscribe('event1')
index(msg: string) {
return this.response().setEvent('event2').setParameters(`hello ${msg}`);
const res = this.response().setEvent('event2').setParameters(`hello ${msg}`);
return res;
}

@ws.subscribe('example1-event1')
Expand Down
2 changes: 1 addition & 1 deletion __tests__/daze/app/example2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BaseWebsocket, ws, websocket } from '../../../src';

@ws.port(9596)
@websocket()
export class Example1 extends BaseWebsocket {
export class Example2 extends BaseWebsocket {
@ws.subscribe('event3')
index(msg: string) {
return this.response().setEvent('event4').setParameters(`hello ${msg}`);
Expand Down
4 changes: 2 additions & 2 deletions example/app/socket.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Websocket, ws } from '../../src';
import { BaseWebsocket, ws } from '../../src';

@ws.port(12453)
export class Example extends Websocket {
export class Example extends BaseWebsocket {
@ws.subscribe('channel')
handle(...msg: any) {
console.log(msg, 123);
Expand Down
Loading

0 comments on commit 5371591

Please sign in to comment.