I`m having issues with the signalling server. Weird thing is, it only fails if I run the project from the beginning. If I run only the current layer it works perfectly. I don`t have anything interfering from past layers in this one, so I can`t understand why it`s not working. When I run all the layers it gets stuck on "connecting to server..." at the end. I don`t think it`s the code below because otherwise it wouldn`t work when I start from the current layer. I`ve tried everything please help!
(I can`t post an url because I don`t have enough reputation so her it goes by parts)