Adding a Pusher container as a middleware/dispatcher between front and back
This commit is contained in:
parent
6c6d046891
commit
4c1e566a6c
86 changed files with 12172 additions and 983 deletions
|
@ -95,7 +95,10 @@ class ConnectionManager {
|
|||
console.log('An error occurred while connecting to socket server. Retrying');
|
||||
reject(error);
|
||||
});
|
||||
|
||||
// FIXME: onConnect should be triggered by the first JoinRoomEvent (instead of the connection)
|
||||
connection.onConnect(() => {
|
||||
console.warn('CONNECT RECEIVED');
|
||||
resolve(connection);
|
||||
})
|
||||
}).catch((err) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue