fixed java implementation for the updated sockjs interface