title: how can I dispather socket request in my gateway?
body: <p>I charge a gateway,which is responsible for all communications between in an out the company.
  Now the gateway need support socket protocal to be called by some other system, and the socket requests should be dispathed to different APIs which are implement by hessian.</p>
  
  <p>As I know, a socket request include ip,port,message body. Beside parse the socket message or use different port to match APIs. Is there other methods? for example, http request can use url's paths and headers to be dispathed.</p>
  
  <p>sorry for my poor english...</p>