When I moved to freelancing, I chose to specialize in Ruby on Rails. Thought it'd make me an expert and get me higher pay. But soon, my client offered me a Node.js project. I hesitated but said yes. And you know what? That saved me being stuck at lower pay.