SES-140 connected Player with SignalR #61
@ -18,7 +18,6 @@ export class PlayerDashboardComponent implements OnInit {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.store.select(s => s.playerStore.characterId).pipe(first()).subscribe((id) => {
|
this.store.select(s => s.playerStore.characterId).pipe(first()).subscribe((id) => {
|
||||||
debugger
|
|
||||||
this.signalRService.Login(id);
|
this.signalRService.Login(id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,6 @@ export class PlayerSignalRService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Login(characterId: number) {
|
public Login(characterId: number) {
|
||||||
debugger
|
|
||||||
this.signalR.startConnection();
|
this.signalR.startConnection();
|
||||||
|
|
||||||
this.signalR.connectionEstablished$.subscribe(() => {
|
this.signalR.connectionEstablished$.subscribe(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user