code: func (c *wsClient) serviceRequest(r *parsedRPCCmd) {
  	var (
  		result interface{}
  		err    error
  	)
  
  	// Lookup the websocket extension for the command and if it doesn't
  	// exist fallback to handling the command as a standard command.
  	wsHandler, ok := wsHandlers[r.method]
  	if ok {
  		result, err = wsHandler(c, r.cmd)
  	} else {
  		result, err = c.server.standardCmdResult(r, nil)
  	}
  	reply, err := createMarshalledReply(r.id, result, err)
  	if err != nil {
  		rpcsLog.Errorf("Failed to marshal reply for <%s> "+
  			"command: %v", r.method, err)
  		return
  	}
  	c.SendMessage(reply, nil)
  }
docs: // serviceRequest services a parsed RPC request by looking up and executing the
  // appropriate RPC handler.  The response is marshalled and sent to the
  // websocket client.