otalk / TLKSimpleWebRTC

MIT License
28 stars 21 forks source link

leaveroom will disconnect, joinroom won't connect #7

Closed evermeer closed 7 years ago

evermeer commented 9 years ago

In TLKSocketIOSignaling.m the leaveroom method will disconnect the soccet. The join room will not connect the socket. Because of this it's not possible to leave and reconnect. When removing the disconnect line in the leaveroom it's possible to do this.

It think it would be better if the connect was moved to the joinroom method so that the connection won't be open if it's not needed.

pablogeek commented 7 years ago

Did you have problems with crashes after disconnection? @evermeer

evermeer commented 7 years ago

@pablogeek No, it just disconnects