make WebSocket constructor public

Made public because sometime getInstance is not appropriate (multiple instance needed for example).