var socket = io("http://localhost", { extraHeaders: { Authorization: "Bearer authorization_token_here" } });