bougarfaoui / ng-socket-io

Socket.IO module for Angular
MIT License
255 stars 57 forks source link

Set SocketIoConfig later during application lifetime #48

Open Paragonid opened 6 years ago

Paragonid commented 6 years ago

Is it possible to set config later during application lifetime?

Usecase: I need to implement handshake with the server and it requires to call io(url, options) after user is logged in

Paragonid commented 6 years ago

My intention is something like this: https://github.com/Paragonid/ng-socket-io/commit/d83072ae92bef8303ebd9d03a85cbaa6a2bd11ff

It somewhat changes architecture and puts additional requirements to usage, I'm not entirely sure how to finish it to make it nice