This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Register your service as usual. I suggest adding it to [providers] in the module definition | |
// Then... | |
... | |
var user = ...; | |
var info = ...; // Optional | |
var timestamp = Date.now() / 1000 | 0; | |
var token = <Get the token from your ws>; | |
this.centrifugeService.connect({ | |
url: 'http://<centrifugoServer>:8000/connection', |