dispatch socket requests with router